Template:Infobox game mode: Difference between revisions

From TeamSpec Wiki
Jump to navigation Jump to search
Game modes carry a map prefix instead of teams and a time limit, which belong to each map
Add an image field
Line 2: Line 2:
|-
|-
! colspan="2" style="background:#f3ecdc;padding:6px;font-size:115%;text-align:center;" | {{{name|{{PAGENAME}}}}}
! colspan="2" style="background:#f3ecdc;padding:6px;font-size:115%;text-align:center;" | {{{name|{{PAGENAME}}}}}
{{#if:{{{image|}}}|
{{!}}-
{{!}} colspan="2" style="padding:8px;text-align:center;background:#ffffff;" {{!}} [[File:{{{image}}}|250px|{{{name|{{PAGENAME}}}}}]]
}}
{{#if:{{{goal|}}}|
{{#if:{{{goal|}}}|
{{!}}-
{{!}}-

Revision as of 04:41, 20 October 2026

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

{{Infobox game mode
| name = Payload
| goal = Push the cart to the end of the track
| prefix = pl_
| maps = [[Kraken Pier]]
}}

Parameters

  • name: the title. Defaults to the page name.
  • goal: what a team plays for, in general terms.
  • prefix: the start of the file name of every map in this mode.
  • maps: maps that play this mode.

Every parameter is optional; empty ones are left out. Needs the ParserFunctions extension for #if.