Template:Battlefield Header/CSS-Switch: Difference between revisions
From HorizonXI Wiki
(Created page with "<includeonly><onlyinclude>{{#switch:{{{1}}} |bcnm|ksnm|enm|henm|isnm|znm=bcnm-table |mission|quest={{#switch:{{Mission Header/ExpansionSwitch|{{{2}}}}} |San d'Oria=sandoriamissions |Bastok=bastokmissions |Windurst=windymissions |Chains of Promathia=copmissions |Rise of the Zilart=zilartmissions |Treasures of Aht Urhgan=toaumissions }} }}</onlyinclude></includeonly> ==Documentation== A helper template to color battlefield headers according to their content. The template g...") |
(No difference)
|
Revision as of 19:23, 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}}
bcnm-table
