Difference between revisions of "Template:Location Infobox"
Jump to navigation
Jump to search
(new infobox, wip) |
WikimanBot (talk | contribs) (more automatic zone control categories) |
||
(36 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | {| | + | {| class="infobox" style="border-spacing:0; color:#626262; width:320px;" |
+ | |- | ||
+ | | class="infobox-h1" colspan="2" | {{{name}}}<!-- | ||
+ | |||
+ | |||
+ | include the zone control icon if zone control type is specified | ||
+ | -->{{#if:<noinclude>string</noinclude>{{{control|}}} | ||
+ | |<span style="float:right; position:relative; margin:0 0 22px 22px;"><span style="position:absolute; top:0px; right:-4px;">{{ | ||
+ | #switch:{{{control|}}} | ||
+ | | no | none = | ||
+ | [[File:ZoneControl-none.png{{!}}30px{{!}}link=Zone Control|Uncontrolled zone]] | ||
+ | | part | partial = | ||
+ | [[File:ZoneControl-partial.png{{!}}30px{{!}}link=Zone Control|Partially controlled zone]] | ||
+ | | full | fully = | ||
+ | [[File:ZoneControl-full.png{{!}}30px{{!}}link=Zone Control|Controlled zone]] | ||
+ | | multiple | varies = | ||
+ | [[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}}}" | ||
+ | ! 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}}}}} | ||
|- | |- | ||
− | | | + | | class="infobox-leftcol" | Located in |
+ | | class="infobox-rightcol" | {{{world}}} | ||
|- | |- | ||
− | | | + | | class="infobox-leftcol" | Areas |
− | | | + | | class="infobox-rightcol" | {{{areas}}} |
− | {{{ | ||
|- | |- | ||
− | | | + | | class="infobox-leftcol" | {{#switch: {{{type|}}} |
− | | | + | | Random dungeon = Connections <br> ({{tooltip|Random dungeon zone connections are usually randomized|Random}}) |
− | {{{ | + | | #default = Connections |
+ | }} | ||
+ | | class="infobox-rightcol" | {{{exits}}} | ||
|- | |- | ||
− | | | + | {{#if:<noinclude>string</noinclude>{{{ftravel|}}}| |
− | + | {{!}} class="infobox-leftcol" {{!}} Fast Travel | |
− | {{{ | + | {{!}} class="infobox-rightcol" {{!}} {{{ftravel}}} |
+ | |}} | ||
|- | |- | ||
− | | | + | | class="infobox-leftcol" | NPCs |
− | | | + | | class="infobox-rightcol" | {{{npcs}}}<nowiki> |
− | {{{npcs}}}<nowiki> | ||
Line 35: | Line 80: | ||
{{#if:<noinclude>string</noinclude>{{{mapfile|}}} | {{#if:<noinclude>string</noinclude>{{{mapfile|}}} | ||
|{{!}}- | |{{!}}- | ||
− | {{!}} colspan="2" | + | {{!}} colspan="2" {{!}}<!-- start collapsible table for technical details --> |
+ | {{(}}{{!}} class="mw-collapsible mw-collapsed" cellspacing="0px" style="width:100%;" data-expandtext="Show" data-collapsetext="Hide" | ||
+ | {{!}}- | ||
+ | ! colspan="2" class="infobox-th" {{!}} <span class="infobox-h2">Technical</span> | ||
+ | |||
+ | {{!}}- title="Underrail Zone (.uz) files located in \Data\Maps\Locale\Static" style="cursor:help;" | ||
+ | {{!}} class="infobox-leftcol" {{!}} Map file(s) | ||
+ | {{!}} class="infobox-rightcol" {{!}} <code>{{{mapfile}}}</code> | ||
+ | {{!}}{{)}}<!-- technical details table end -->|}} | ||
+ | |}<!-- | ||
+ | |||
+ | |||
+ | |||
+ | 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 = | ||
+ | }}<!-- | ||
+ | |||
+ | |||
− | + | -->}}<!-- close namespace #IF --><noinclude><br style="clear:both;"/>{{documentation}}</noinclude> | |
− | |||
− | |||
− | |||
− |
Latest revision as of 09:08, 15 January 2020
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?)
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 | |
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 2 | |||||
Map area information | |||||
---|---|---|---|---|---|
Music | Unknown | ||||
Located in | Lower Underrail | ||||
Areas | Armory Shooting Range | ||||
Connections | South Gate Station elevator | ||||
NPCs | Lucas Gorsky | ||||
|
Crossroad Watch | |||||
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 | ||||
|
Check the source.