Template:Infobox map: Difference between revisions

Template: infobox map
 
Add the map's file name; document that teams, time and win conditions are the map's
Line 2: Line 2:
|-
|-
! colspan="2" style="background:#e6dcf3;padding:6px;font-size:115%;text-align:center;" | {{{name|{{PAGENAME}}}}}
! colspan="2" style="background:#e6dcf3;padding:6px;font-size:115%;text-align:center;" | {{{name|{{PAGENAME}}}}}
{{#if:{{{file|}}}|
{{!}}-
{{!}} style="padding:4px 6px;vertical-align:top;font-weight:bold;width:40%;" {{!}} File name
{{!}} style="padding:4px 6px;" {{!}} <code>{{{file}}}</code>
}}
{{#if:{{{mode|}}}|
{{#if:{{{mode|}}}|
{{!}}-
{{!}}-
Line 21: Line 26:
{{!}} style="padding:4px 6px;vertical-align:top;font-weight:bold;width:40%;" {{!}} Time limit
{{!}} style="padding:4px 6px;vertical-align:top;font-weight:bold;width:40%;" {{!}} Time limit
{{!}} style="padding:4px 6px;" {{!}} {{{time}}}
{{!}} style="padding:4px 6px;" {{!}} {{{time}}}
}}
{{#if:{{{win|}}}|
{{!}}-
{{!}} style="padding:4px 6px;vertical-align:top;font-weight:bold;width:40%;" {{!}} To win
{{!}} style="padding:4px 6px;" {{!}} {{{win}}}
}}
}}
{{#if:{{{summary|}}}|
{{#if:{{{summary|}}}|
Line 28: Line 38:
}}
}}
|}</includeonly><noinclude>
|}</includeonly><noinclude>
The box at the top right of every map page.
The box at the top right of every map page. Each map sets its own teams, clock and numbers, so they go here rather than on the [[Game modes|game mode]] page.


== Usage ==
== Usage ==
Line 34: Line 44:
{{Infobox map
{{Infobox map
| name = Kraken Pier
| name = Kraken Pier
| file = pl_krakenpier
| mode = [[Payload]]
| mode = [[Payload]]
| teams = Attackers, Defenders
| teams = Attackers, Defenders
| time = 20 minutes
}}
}}
</pre>
</pre>
Line 41: Line 53:
== Parameters ==
== Parameters ==
* <code>name</code>: the title. Defaults to the page name.
* <code>name</code>: the title. Defaults to the page name.
* <code>file</code>: the map's file name, whose prefix names its mode.
* <code>mode</code>: game mode
* <code>mode</code>: game mode
* <code>teams</code>: teams
* <code>teams</code>: teams
* <code>players</code>: players
* <code>players</code>: players
* <code>time</code>: time limit
* <code>time</code>: time limit
* <code>win</code>: what ends the match on this map
* <code>summary</code>: summary
* <code>summary</code>: summary