Difference between revisions of "Template:Location Infobox"

From Underrail Wiki
Jump to navigation Jump to search
(add fast travel parameter)
(more automatic zone control categories)
 
(4 intermediate revisions by the same user not shown)
Line 6: Line 6:
 
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; margin:0 0 22px 22px;"><span style="position:absolute; top:-2px; right:-4px;">{{
+
   |<span style="float:right; position:relative; margin:0 0 22px 22px;"><span style="position:absolute; top:0px; right:-4px;">{{
 
     #switch:{{{control|}}}
 
     #switch:{{{control|}}}
 
         | no | none =
 
         | no | none =
Line 26: Line 26:
 
     -->[[File:DetectionIndicator-1.png{{!}}30px{{!}}link=Zone Control|Security Camera Footage]]<!--
 
     -->[[File:DetectionIndicator-1.png{{!}}30px{{!}}link=Zone Control|Security Camera Footage]]<!--
 
     -->[[File:DetectionIndicator-2.png{{!}}30px{{!}}link=Zone Control|Leave no Witnesses]]
 
     -->[[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 =
 
         | #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>
 
     }}</span></span>
 
   |}}<br/><hr style="background-color:#AE5700; height:2px; margin:10px -8px 0 -8px;"/>
 
   |}}<br/><hr style="background-color:#AE5700; height:2px; margin:10px -8px 0 -8px;"/>
  
 
|-
 
|-
! colspan="2" | {{{maptext|}}}
+
! colspan="2" | <div style="margin:0 30px;" title="Global Map description">{{{maptext|<noinclude>{{{maptext}}}</noinclude>}}}</div>
  
 
|- title="Image of {{{name}}}"
 
|- title="Image of {{{name}}}"
Line 52: Line 59:
  
 
|-
 
|-
| class="infobox-leftcol" | Connections
+
| class="infobox-leftcol" | {{#switch: {{{type|}}}
 +
                            | Random dungeon = Connections <br> ({{tooltip|Random dungeon zone connections are usually randomized|Random}})
 +
                            | #default = Connections
 +
                            }}
 
| class="infobox-rightcol" | {{{exits}}}
 
| class="infobox-rightcol" | {{{exits}}}
  
 
|-
 
|-
| class="infobox-leftcol" | Fast Travel
+
{{#if:<noinclude>string</noinclude>{{{ftravel|}}}|
| class="infobox-rightcol" | {{{ftravel|<noinclude>{{{ftravel}}}</noinclude>}}}
+
{{!}} class="infobox-leftcol" {{!}} Fast Travel
 +
{{!}} class="infobox-rightcol" {{!}} {{{ftravel}}}
 +
|}}
  
 
|-
 
|-
Line 87: Line 99:
  
  
zone control categories if zone control is specified (none/partial/full)
+
zone control categories if zone control is specified
 
-->{{#switch:{{{control|}}}
 
-->{{#switch:{{{control|}}}
    |no|none=[[Category: Uncontrolled zones]]
+
    | none | no = [[Category: Uncontrolled zones]]
    |part|partial=[[Category: Partially controlled zones]]
+
    | part | partial = [[Category: Partially controlled zones]]
    |full|fully=[[Category: Controlled zones]]
+
    | full | fully = [[Category: Controlled zones]]
    |#default=}}<!--
+
    | 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 =
 +
  }}<!--
  
  
  
 
-->}}<!-- close namespace #IF --><noinclude><br style="clear:both;"/>{{documentation}}</noinclude>
 
-->}}<!-- close namespace #IF --><noinclude><br style="clear:both;"/>{{documentation}}</noinclude>

Latest revision as of 09: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.