Difference between revisions of "Template:TraitAbilityDisplay"

From Holdfast: Nations At War
Jump to navigation Jump to search
m (Fall through on switch statement to make it more efficient.)
m (Removing any spacing from front of table)
Line 12: Line 12:
  
 
</noinclude>
 
</noinclude>
<includeonly>
+
<includeonly>{| class=wikitable style="margin-bottom:0px;margin-top:0px"
 
 
{| class=wikitable style="margin-bottom:0px;margin-top:0px"
 
 
|-
 
|-
 
| style="width: 100px" | [[File:{{#switch: {{{enum}}} | AbleSwimmer | Distinguishable | Resilient | LightFooted | Marksman | Skirmisher | EliteInfantry | MusketSpecialisation | BayonetSpecialisation | PikeSpecialisation | SwordSpecialisation | AxeSpecialisation | ChosenMan | CannonSpecialisation | RocketSpecialisation | RankDiscipline | BlunderbussSpecialisation | PistolSpecialisation | ExplosivesSpecialist = Trait | HighCommandArmy | HighCommandNaval | Medicine | EngineeringSpecialist | ArtilleryOperator | RocketOperator | RankAndFile | Guardsman | Musician | StandardBearer | ExplosivesHandling = Ability | default = Trait}}_{{{ enum|blank }}}.png]]
 
| style="width: 100px" | [[File:{{#switch: {{{enum}}} | AbleSwimmer | Distinguishable | Resilient | LightFooted | Marksman | Skirmisher | EliteInfantry | MusketSpecialisation | BayonetSpecialisation | PikeSpecialisation | SwordSpecialisation | AxeSpecialisation | ChosenMan | CannonSpecialisation | RocketSpecialisation | RankDiscipline | BlunderbussSpecialisation | PistolSpecialisation | ExplosivesSpecialist = Trait | HighCommandArmy | HighCommandNaval | Medicine | EngineeringSpecialist | ArtilleryOperator | RocketOperator | RankAndFile | Guardsman | Musician | StandardBearer | ExplosivesHandling = Ability | default = Trait}}_{{{ enum|blank }}}.png]]

Revision as of 16:27, 17 August 2019

Used to create a single row detailing a trait / ability for display in other pages. Should attach to the data defined through Template:TraitAbility. For now is all hard coded.


Usage:

{{TraitAbilityDisplay|enum=AbleSwimmer}}


Trait AbleSwimmer.png Able Swimmer Lightly equipped. Your swimming speed is increased by 35%.


Ability ArtilleryOperator.png Artillery Operator Well versed in the operation of various artillery pieces. You have priority over the use of field guns, siege guns and mortars.