Difference between revisions of "Template:Location Infobox"

From Underrail Wiki
Jump to navigation Jump to search
m
(more automatic zone control categories)
 
(23 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| cellspacing="0px" style={{Infobox common style}} width="320px"
+
{| class="infobox" style="border-spacing:0; color:#626262; width:320px;"
 
 
 
|-
 
|-
| colspan="2" align="center" style="font-weight:bold; font-size:140%; color:#AE5700; padding-bottom:10px; border-bottom:#AE5700 2px solid" | {{{name}}}<!--
+
| class="infobox-h1" colspan="2" | {{{name}}}<!--
  
  
 
include the zone control icon if zone control type is specified
 
include the zone control icon if zone control type is specified
 
-->{{#if:<noinclude>string</noinclude>{{{control|}}}
 
-->{{#if:<noinclude>string</noinclude>{{{control|}}}
   |<span style="float:right; position:relative;"><span style="position:absolute; top:-2px; left:-27px;">[[File:ZoneControl-{{#switch:{{{control|}}}
+
   |<span style="float:right; position:relative; margin:0 0 22px 22px;"><span style="position:absolute; top:0px; right:-4px;">{{
          |no|none=none
+
    #switch:{{{control|}}}
          |part|partial=partial
+
        | no | none =
          |full|fully|#default=full
+
        [[File:ZoneControl-none.png{{!}}30px{{!}}link=Zone Control|Uncontrolled zone]]
    }}.png{{!}}30px{{!}}link=Zone Control|{{#switch:{{{control|}}}
+
        | part | partial =
          |no|none=Uncontrolled zone
+
        [[File:ZoneControl-partial.png{{!}}30px{{!}}link=Zone Control|Partially controlled zone]]
          |part|partial=Partially controlled zone
+
        | full | fully =
          |full|fully=Controlled zone
+
        [[File:ZoneControl-full.png{{!}}30px{{!}}link=Zone Control|Controlled zone]]
          |#default=(zone control type unspecified)
+
        | multiple | varies =
     }}]]</span></span>
+
        [[File:ZoneControl-varies.gif{{!}}30px{{!}}link=Zone Control|Multiple zones, varying levels of zone control]]
   |}}
+
        | cameras =
 +
        [[File:ZoneControl-full.png{{!}}30px{{!}}link=Zone Control|Controlled zone]]<!--
 +
    -->[[File:DetectionIndicator-1.png{{!}}30px{{!}}link=Zone Control|Security Camera Footage]]
 +
        | witnesses =
 +
        [[File:ZoneControl-full.png{{!}}30px{{!}}link=Zone Control|Controlled zone]]<!--
 +
    -->[[File:DetectionIndicator-2.png{{!}}30px{{!}}link=Zone Control|Leave no Witnesses]]
 +
        | cameras+witnesses =
 +
        [[File:ZoneControl-none.png{{!}}30px{{!}}link=Zone Control|Uncontrolled zone]]<!--
 +
    -->[[File:DetectionIndicator-1.png{{!}}30px{{!}}link=Zone Control|Security Camera Footage]]<!--
 +
    -->[[File:DetectionIndicator-2.png{{!}}30px{{!}}link=Zone Control|Leave no Witnesses]]
 +
        | savingdisabled =
 +
        [[File:ZoneControl-none.png{{!}}30px{{!}}link=Zone Control|Uncontrolled zone]]<!--
 +
    -->[[File:Saving Disabled.png{{!}}30px{{!}}link=Zone Control|Saving Disabled]]
 +
        | #default =
 +
        <noinclude>[[File:ZoneControl-varies.gif{{!}}30px{{!}}link=Zone Control|Multiple zones, varying levels of zone control]]<!--
 +
     -->[[File:DetectionIndicator-1.png{{!}}30px{{!}}link=Zone Control|Security Camera Footage]]<!--
 +
    -->[[File:DetectionIndicator-2.png{{!}}30px{{!}}link=Zone Control|Leave no Witnesses]]<!--
 +
    -->[[File:Saving Disabled.png{{!}}30px{{!}}link=Zone Control|Saving Disabled]]</noinclude>
 +
    }}</span></span>
 +
   |}}<br/><hr style="background-color:#AE5700; height:2px; margin:10px -8px 0 -8px;"/>
 +
 
 +
|-
 +
! colspan="2" | <div style="margin:0 30px;" title="Global Map description">{{{maptext|<noinclude>{{{maptext}}}</noinclude>}}}</div>
  
 
|- title="Image of {{{name}}}"
 
|- title="Image of {{{name}}}"
| colspan="2" align="center" | [[File:{{#if:{{{image|}}}|{{{image|}}}|misc_icon.png}}{{!}}300x200px|]]
+
! colspan="2" | [[File:{{#if:{{{image|}}}|{{{image}}}|misc_icon.png}}{{!}}300px]]
 +
 
 +
|-
 +
! colspan="2" class="infobox-th" | <span class="infobox-h2">{{{type}}} information</span>
 +
 
 +
|-
 +
| class="infobox-leftcol" | Music
 +
| class="infobox-rightcol" | {{musiclink|{{{music}}}}}
  
 
|-
 
|-
| colspan="2" align="center" style="background-color:#2E2D42; border:#AE5700 2px solid; border-radius:4px; font-weight:bold; color:white;" | {{{type}}} information
+
| class="infobox-leftcol" | Located in
 +
| class="infobox-rightcol" | {{{world}}}
  
 
|-
 
|-
| width="30%" align="right" valign="top" style="padding-right:0.4em;" | Located in
+
| class="infobox-leftcol" | Areas
| width="70%" style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" |
+
| class="infobox-rightcol" | {{{areas}}}
{{{world}}}
 
  
 
|-
 
|-
| width="30%" align="right" valign="top" style="padding-right:0.4em;" | Areas
+
| class="infobox-leftcol" | {{#switch: {{{type|}}}
| width="70%" style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" |
+
                            | Random dungeon = Connections <br> ({{tooltip|Random dungeon zone connections are usually randomized|Random}})
{{{areas}}}
+
                            | #default = Connections
 +
                            }}
 +
| class="infobox-rightcol" | {{{exits}}}
  
 
|-
 
|-
| width="30%" align="right" valign="top" style="padding-right:0.4em;" | Connections
+
{{#if:<noinclude>string</noinclude>{{{ftravel|}}}|
| width="70%" style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" |
+
{{!}} class="infobox-leftcol" {{!}} Fast Travel
{{{exits}}}
+
{{!}} class="infobox-rightcol" {{!}} {{{ftravel}}}
 +
|}}
  
 
|-
 
|-
| width="30%" align="right" valign="top" style="padding-right:0.4em;" | NPCs
+
| class="infobox-leftcol" | NPCs
| width="70%" style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" |
+
| class="infobox-rightcol" | {{{npcs}}}<nowiki>
{{{npcs}}}<nowiki>
 
  
  
Line 53: Line 83:
 
{{(}}{{!}} class="mw-collapsible mw-collapsed" cellspacing="0px" style="width:100%;" data-expandtext="Show" data-collapsetext="Hide"
 
{{(}}{{!}} class="mw-collapsible mw-collapsed" cellspacing="0px" style="width:100%;" data-expandtext="Show" data-collapsetext="Hide"
 
{{!}}-
 
{{!}}-
{{!}} colspan="2" align="center" style="background-color:#2E2D42; border:#AE5700 2px solid; border-radius:4px; font-weight:bold; color:white;" {{!}} Technical
+
! colspan="2" class="infobox-th" {{!}} <span class="infobox-h2">Technical</span>
  
{{!}}- title="Found in \Data\Maps\Locale\Static"
+
{{!}}- title="Underrail Zone (.uz) files located in \Data\Maps\Locale\Static" style="cursor:help;"
{{!}} width="30%" align="right" valign="top" style="padding-right:0.4em;" {{!}} Map file(s)
+
{{!}} class="infobox-leftcol" {{!}} Map file(s)
{{!}} width="70%" style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}}
+
{{!}} class="infobox-rightcol" {{!}} <code>{{{mapfile}}}</code>
<code>{{{mapfile}}}</code>
 
 
{{!}}{{)}}<!-- technical details table end -->|}}
 
{{!}}{{)}}<!-- technical details table end -->|}}
|}<noinclude>
+
|}<!--
 +
 
 +
 
 +
 
 +
AUTOMATIC CATEGORIES:
 +
only if namespace is empty string, aka main namespace
 +
-->{{#if:{{NAMESPACE}}||<!--
 +
 
 +
 
 +
 
 +
zone control categories if zone control is specified
 +
-->{{#switch:{{{control|}}}
 +
    | none | no = [[Category: Uncontrolled zones]]
 +
    | part | partial = [[Category: Partially controlled zones]]
 +
    | full | fully = [[Category: Controlled zones]]
 +
    | cameras = [[Category: Security Camera Footage]]
 +
    | witnesses = [[Category: Leave No Witnesses]]
 +
    | cameras+witnesses = [[Category: Security Camera Footage]][[Category: Leave No Witnesses]]
 +
    | savingdisabled = [[Category: Saving Disabled]]
 +
    | #default =
 +
  }}<!--
 +
 
 +
 
  
<br style="clear:both;"/>{{documentation}}</noinclude>
+
-->}}<!-- close namespace #IF --><noinclude><br style="clear:both;"/>{{documentation}}</noinclude>

Latest revision as of 10:08, 15 January 2020

{{{name}}}Multiple zones, varying levels of zone controlSecurity Camera FootageLeave no WitnessesSaving Disabled

{{{maptext}}}
Misc icon.png
{{{type}}} information
Music Unknown
Located in {{{world}}}
Areas {{{areas}}}
Connections {{{exits}}}
Fast Travel {{{ftravel}}}
NPCs {{{npcs}}}
Technical
Map file(s) {{{mapfile}}}


Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit Template:Location_Infobox/doc to view this documentation. (edit) (How does this work?)

Usage

{{Location Infobox
| name    = 
| maptext = descriptive text from Global Map if applicable
| type    = "Zone" for single zones, "Major location" for entire global map area, otherwise freeform text ("Location" suggested)
| control = none, full, partial, cameras, witnesses, cameras+witnesses or savingdisabled
| image   = 
| world   = 
| areas   = Screens or areas for single zone, each zone for multi-zone articles, vague overview for large Global Map articles
| exits   = connections to other zones
| ftravel = fast travel options
| npcs    = notable NPCs
| mapfile = .uz filename(s)
}}

Examples

South Gate Station

Sgs3.png
Station information
Music Unknown
Located in Lower Underrail
Areas Lower Underrail: South Gate Station
South Gate Station level 1
South Gate Station level 2
South Gate Station level 3
South Gate Station level 4
South Gate Station level 5
South Gate Station level 6
South Gate Station level 7
South Gate Station level 8
South Gate Station level 9
South Gate Station docks
Connections Lower Underrail
Crossroad Watch
Junkyard - Docks
NPCs Essie, Bisson,

Harland, Gorsky, Lucas, Hadrian Tanner, Jack Quicksilver, Vera Hale, Pasquale, Ezra, Harold, Quinton, Malcom, Captain Svana, Arlene, Najed, Wayne, Roman

South Gate Station level 2Controlled zone

StationAlpha-Level2.png
Map area information
Music Unknown
Located in Lower Underrail
Areas Armory
Shooting Range
Connections South Gate Station elevator
NPCs Lucas
Gorsky
Technical
Map file(s) StationAlpha-Level2.uz
StationAlpha-Level2_L1.uzl
Crossroad WatchPartially controlled zone

CrossroadCaves.png
Map area information
Music Unknown
Located in Lower Underrail
Areas Crossroad watchpost
Connections South Gate Station level 9 (west)
South Gate Outposts (north)
Crossroad Caves (south)
NPCs Old Jonas
Technical
Map file(s) CrossroadCaves.uz
CrossroadCaves_L1.uzl

Check the source.