Template:Infobox map: Difference between revisions
TeamSpecBot (talk | contribs) Template: infobox map |
TeamSpec theme: colours move from inline styles to MediaWiki:Common.css classes |
||
| (3 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{| style="float:right;clear:right;width:300px;margin:0 0 12px 16px | <includeonly>{| class="ts-infobox" style="float:right;clear:right;width:300px;max-width:100%;box-sizing:border-box;margin:0 0 12px 16px;font-size:90%;border-collapse:collapse;" | ||
|- | |- | ||
! colspan="2" style=" | ! class="ts-infobox-title" colspan="2" style="padding:6px;font-size:115%;text-align:center;" | {{{name|{{PAGENAME}}}}} | ||
{{#if:{{{image|}}}| | |||
{{!}}- | |||
{{!}} class="ts-infobox-image" colspan="2" style="padding:8px;text-align:center;" {{!}} [[File:{{{image}}}|250px|{{{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 30: | ||
{{!}} 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 42: | ||
}} | }} | ||
|}</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 48: | ||
{{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 57: | ||
== 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 | ||