Difference between revisions of "Template:TraitAbility/Name"

From Holdfast: Nations At War
Jump to navigation Jump to search
(Created page with "<includeonly>{{#switch: {{{1|default}}} | HighCommandArmy = Army High Command | HighCommandNaval = Naval High Command | Medicine = Medicine | HorsebackRiding = Horseback R...")
 
m
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#switch: {{{1|default}}}  
+
<noinclude>
 +
== USAGE ==
 +
Used to look up the full name from a Trait/Ability enum.
 +
 
 +
Usage:
 +
<pre>{{TraitAbility/Name|Enum of Ability}</pre>
 +
 
 +
e.g.
 +
<pre>{{TraitAbility/Name|AbleSwimmer}</pre>
 +
{{TraitAbility/Name|AbleSwimmer}}
 +
 
 +
== SETUP ==
 +
Add to / update the switch list to add new entries.  Each should be on its own line, of the form:
 +
<pre>| ENUM = Full Name</pre>
 +
 
 +
</noinclude><includeonly>{{#switch: {{{1|default}}}  
 
| HighCommandArmy = Army High Command  
 
| HighCommandArmy = Army High Command  
 
| HighCommandNaval = Naval High Command  
 
| HighCommandNaval = Naval High Command  
Line 18: Line 33:
 
| Armoured = Armoured  
 
| Armoured = Armoured  
 
| LightFooted = Light Footed  
 
| LightFooted = Light Footed  
| SkilfulRider = Skillful Rider
 
 
| Marksman = Marksman  
 
| Marksman = Marksman  
 
| Skirmisher = Skirmisher  
 
| Skirmisher = Skirmisher  
Line 33: Line 47:
 
| BlunderbussSpecialisation = Blunderbuss Specialisation  
 
| BlunderbussSpecialisation = Blunderbuss Specialisation  
 
| PistolSpecialisation = Pistol Specialisation  
 
| PistolSpecialisation = Pistol Specialisation  
| ExplosivesSpecialist = Explosives Specialist }}</includeonly>
+
| ExplosivesSpecialist = Explosives Specialist
 +
| HorsebackRiding = Horseback Riding
 +
| MountedFirearmSpecialisation = Mounted Firearm Specialisation
 +
| MountedSwordSpecialisation = Mounted Sword Specialisation
 +
| SkilfulRider = Skilful Rider
 +
| Orderly = Orderly }}</includeonly>

Revision as of 21:53, 6 March 2020

USAGE

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

Usage:

{{TraitAbility/Name|Enum of Ability}

e.g.

{{TraitAbility/Name|AbleSwimmer}

Able Swimmer

SETUP

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

| ENUM = Full Name