Difference between revisions of "Template:TraitAbility/Type"
Jump to navigation
Jump to search
(Created page with "<includeonly>{{#switch: {{{1|default}}} | HighCommandArmy = Ability | HighCommandNaval = Ability | Medicine = Ability | HorsebackRiding = Ability | EngineeringSpecialist...") |
|||
(9 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>{{#switch: {{{1|default}}} | + | <noinclude> |
+ | == 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 | | HighCommandArmy = Ability | ||
| HighCommandNaval = Ability | | HighCommandNaval = Ability | ||
Line 13: | Line 28: | ||
| StandardBearer = Ability | | StandardBearer = Ability | ||
| ExplosivesHandling = Ability | | ExplosivesHandling = Ability | ||
+ | | BayonetHandling = Ability | ||
+ | | Bandage = Ability | ||
| AbleSwimmer = Trait | | AbleSwimmer = Trait | ||
| Distinguishable = Trait | | Distinguishable = Trait | ||
Line 18: | Line 35: | ||
| Armoured = Trait | | Armoured = Trait | ||
| LightFooted = Trait | | LightFooted = Trait | ||
− | |||
| Marksman = Trait | | Marksman = Trait | ||
| Skirmisher = Trait | | Skirmisher = Trait | ||
Line 33: | Line 49: | ||
| BlunderbussSpecialisation = Trait | | BlunderbussSpecialisation = Trait | ||
| PistolSpecialisation = Trait | | PistolSpecialisation = Trait | ||
− | | ExplosivesSpecialist = Trait }}</includeonly> | + | | 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)