Template:Battlefield Header/CSS-Switch: Difference between revisions
From Horizon Wiki Mirror
Content deleted Content added
imported>Aramachus 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..." |
imported>Aramachus mNo edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly><onlyinclude>{{#switch:{{{1}}} |
<includeonly><onlyinclude>{{#switch:{{lc:{{{1}}}}} |
||
|#default=battlefield-table |
|||
|bcnm|ksnm|enm|henm|isnm|znm= |
|bcnm|ksnm|enm|henm|isnm|znm=battlefield-table |
||
|mission|quest={{#switch:{{Mission Header/ExpansionSwitch|{{{2}}}}} |
|mission|quest={{#switch:{{Mission Header/ExpansionSwitch|{{{2}}}}} |
||
|San d'Oria=sandoriamissions |
|San d'Oria=sandoriamissions |
||
| Line 8: | Line 9: | ||
|Rise of the Zilart=zilartmissions |
|Rise of the Zilart=zilartmissions |
||
|Treasures of Aht Urhgan=toaumissions |
|Treasures of Aht Urhgan=toaumissions |
||
|#default=quest-table |
|||
}} |
}} |
||
}}</onlyinclude></includeonly> |
}}</onlyinclude></includeonly> |
||
Latest revision as of 20:10, 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