Template:Battlefield Header/CSS-Switch: Difference between revisions

From HorizonXI Wiki
mNo edit summary
mNo edit summary
Line 1: Line 1:
<includeonly><onlyinclude>{{#switch:{{{1}}}
<includeonly><onlyinclude>{{#switch:{{lc:{{{1}}}}}
|#default=battlefield-table
|bcnm|ksnm|enm|henm|isnm|znm=battlefield-table
|bcnm|ksnm|enm|henm|isnm|znm=battlefield-table
|mission|quest={{#switch:{{Mission Header/ExpansionSwitch|{{{2}}}}}
|mission|quest={{#switch:{{Mission Header/ExpansionSwitch|{{{2}}}}}

Revision as of 19:49, 13 August 2025

Documentation

A helper template to color battlefield headers according to their content. The template generates the appropriate table color class for the content. Takes 2 unnamed arguments:

  • {{{1}}}: type of the battlefield (e.g. bcnm, ksnm, mission, quest, ...)
  • {{{2}}}: in case of e.g. missions, the second argument allows to specify the storyline, e.g. San d'Oria, Windurst, Chains of Promathia, ...

The second argument uses a template to understand commonly used abbreviations like "toau" for "Treasures of Aht Urhgan" or "sandy" for "San d'Oria".

Examples

{{Battlefield Header/CSS-Switch|mission|sandy}}

sandoriamissions

{{Battlefield Header/CSS-Switch|bcnm}}

battlefield-table