Difference between revisions of "Template:TraitAbility/Type"

From Holdfast: Nations At War
Jump to navigation Jump to search
m
m
(3 intermediate revisions by the same user 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 36: Line 51:
 
| MountedFirearmSpecialisation = Trait
 
| MountedFirearmSpecialisation = Trait
 
| MountedSwordSpecialisation = Trait
 
| MountedSwordSpecialisation = Trait
| SkilfulRider = Trait }}</includeonly>
+
| SkilfulRider = Trait
 +
| Orderly = Trait }}</includeonly>

Revision as of 21:53, 6 March 2020

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)