Template:Battlefield Header/CSS-Switch
From HorizonXI Wiki
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
