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

From HorizonXI Wiki
mNo edit summary
mNo edit summary
 
(One intermediate revision 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=battlefield-table
|bcnm|ksnm|enm|henm|isnm|znm=battlefield-table
|mission|quest={{#switch:{{Mission Header/ExpansionSwitch|{{{2}}}}}
|mission|quest={{#switch:{{Mission Header/ExpansionSwitch|{{{2}}}}}
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