Difference between revisions of "Template:TraitAbility/Type"

From Holdfast: Nations At War
Jump to navigation Jump to search
m
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#switch: {{{1|default}}} | AbleSwimmer = Trait | Distinguishable = Trait | Resilient = Trait | LightFooted = Trait | Marksman = Trait | Skirmisher = Trait | EliteInfantry = Trait | MusketSpecialisation = Trait | BayonetSpecialisation = Trait | PikeSpecialisation = Trait | SwordSpecialisation = Trait | AxeSpecialisation = Trait | ChosenMan = Trait | CannonSpecialisation = Trait | RocketSpecialisation = Trait | RankDiscipline = Trait | BlunderbussSpecialisation = Trait | PistolSpecialisation = Trait | ExplosivesSpecialist = Trait | HighCommandArmy = Ability | HighCommandNaval = Ability | Medicine = Ability | EngineeringSpecialist = Ability | ArtilleryOperator = Ability | RocketOperator = Ability | RankAndFile = Ability | Guardsman = Ability | Musician = Ability | StandardBearer = Ability | ExplosivesHandling = Ability | default = Trait }}
+
<noinclude>
</includeonly>
+
== USAGE ==
 +
Used to look up the type from a Trait/Ability enum.
 +
 
 +
Usage:
 +
<pre>{{TraitAbility/Type|Enum of Ability}}</pre>
 +
 
 +
e.g.
 +
<pre>{{TraitAbility/Type|AbleSwimmer}}</pre>
 +
{{TraitAbility/Type|AbleSwimmer}}
 +
 
 +
== SETUP ==
 +
Add to / update the switch list to add new entries.  Each should be on its own line, of the form:
 +
<pre>| ENUM = Type (Trait or Ability)</pre>
 +
 
 +
</noinclude><includeonly>{{#switch: {{{1|default}}}  
 +
| HighCommandArmy = Ability
 +
| HighCommandNaval = Ability
 +
| Medicine = Ability
 +
| HorsebackRiding = Ability
 +
| EngineeringSpecialist = Ability
 +
| EngineeringBasics = Ability
 +
| ArtilleryOperator = Ability
 +
| RocketOperator = Ability
 +
| RankAndFile = Ability
 +
| Guardsman = Ability
 +
| Musician = Ability
 +
| StandardBearer = Ability
 +
| ExplosivesHandling = Ability
 +
| BayonetHandling = Ability
 +
| Bandage = Ability
 +
| AbleSwimmer = Trait  
 +
| Distinguishable = Trait  
 +
| Resilient = Trait  
 +
| Armoured = Trait
 +
| LightFooted = Trait  
 +
| Marksman = Trait  
 +
| Skirmisher = Trait  
 +
| EliteInfantry = Trait  
 +
| MusketSpecialisation = Trait  
 +
| BayonetSpecialisation = Trait  
 +
| PikeSpecialisation = Trait  
 +
| SwordSpecialisation = Trait  
 +
| AxeSpecialisation = Trait  
 +
| ChosenMan = Trait  
 +
| CannonSpecialisation = Trait  
 +
| RocketSpecialisation = Trait  
 +
| RankDiscipline = Trait  
 +
| BlunderbussSpecialisation = Trait  
 +
| PistolSpecialisation = Trait  
 +
| ExplosivesSpecialist = Trait  
 +
| HorsebackRiding = Ability
 +
| MountedFirearmSpecialisation = Trait
 +
| MountedSwordSpecialisation = Trait
 +
| SkilfulRider = Trait
 +
| Orderly = Trait }}</includeonly>

Latest revision as of 20:55, 28 June 2021

USAGE

Used to look up the type from a Trait/Ability enum.

Usage:

{{TraitAbility/Type|Enum of Ability}}

e.g.

{{TraitAbility/Type|AbleSwimmer}}

Trait

SETUP

Add to / update the switch list to add new entries. Each should be on its own line, of the form:

| ENUM = Type (Trait or Ability)