Template:Infobox game mode: Difference between revisions
TeamSpecBot (talk | contribs) Template: infobox game mode |
TeamSpecBot (talk | contribs) Game modes carry a map prefix instead of teams and a time limit, which belong to each map |
||
| Line 7: | Line 7: | ||
{{!}} style="padding:4px 6px;" {{!}} {{{goal}}} | {{!}} style="padding:4px 6px;" {{!}} {{{goal}}} | ||
}} | }} | ||
{{#if:{{{ | {{#if:{{{prefix|}}}| | ||
{{!}}- | {{!}}- | ||
{{!}} style="padding:4px 6px;vertical-align:top;font-weight:bold;width:40%;" {{!}} | {{!}} style="padding:4px 6px;vertical-align:top;font-weight:bold;width:40%;" {{!}} Map prefix | ||
{{!}} style="padding:4px 6px;" {{!}} {{{ | {{!}} style="padding:4px 6px;" {{!}} <code>{{{prefix}}}</code> | ||
}} | }} | ||
{{#if:{{{maps|}}}| | {{#if:{{{maps|}}}| | ||
| Line 23: | Line 18: | ||
}} | }} | ||
|}</includeonly><noinclude> | |}</includeonly><noinclude> | ||
The box at the top right of every game mode page. | The box at the top right of every game mode page. A game mode page holds only the mode's general rules; teams, time limits and other numbers belong to each map and go in [[Template:Infobox map]]. | ||
== Usage == | == Usage == | ||
| Line 30: | Line 25: | ||
| name = Payload | | name = Payload | ||
| goal = Push the cart to the end of the track | | goal = Push the cart to the end of the track | ||
| prefix = pl_ | |||
| maps = [[Kraken Pier]] | | maps = [[Kraken Pier]] | ||
}} | }} | ||
| Line 36: | Line 32: | ||
== Parameters == | == Parameters == | ||
* <code>name</code>: the title. Defaults to the page name. | * <code>name</code>: the title. Defaults to the page name. | ||
* <code>goal</code>: | * <code>goal</code>: what a team plays for, in general terms. | ||
* <code> | * <code>prefix</code>: the start of the file name of every map in this mode. | ||
* <code>maps</code>: maps that play this mode. | |||
* <code>maps</code>: maps | |||
Every parameter is optional; empty ones are left out. Needs the ParserFunctions extension for <code>#if</code>. | Every parameter is optional; empty ones are left out. Needs the ParserFunctions extension for <code>#if</code>. | ||