Difference between revisions of "Template:TraitAbility"

From Holdfast: Nations At War
Jump to navigation Jump to search
m
m
Line 13: Line 13:
  
 
== SETUP ==
 
== SETUP ==
This is driven by sub-templates for the data used (these also feed other uses of trait/ability data).  The Trait image is resized to 55x55px and should be named Trait_[enum].png, replacing [enum] with the name of the trait.
+
This is driven by sub-templates for the data used (these also feed other uses of trait/ability data).  To add a new trait to the template, do not edit this page, but edit the sub-templates and upload a trait image.  This should be resized to 55x55px and should be named Trait_[enum].png, replacing [enum] with the name of the trait.
<pre>
+
 
{{TraitAbility/Type|AbleSwimmer}}
+
So:
{{TraitAbility/Name|AbleSwimmer}}
+
 
{{TraitAbility/Description|AbleSwimmer}}
+
<code>
</pre>
+
[[Template:TraitAbility/Type|<nowiki>{{TraitAbility/Type|AbleSwimmer}}</nowiki>]]
 +
 
 +
[[Template:TraitAbility/Name|<nowiki>{{TraitAbility/Name|AbleSwimmer}}</nowiki>]]
  
[[Template:TraitAbility/Type|{{TraitAbility/Type|AbleSwimmer}}]]
+
[[Template:TraitAbility/Description|<nowiki>{{TraitAbility/Description|AbleSwimmer}}</nowiki>]]
 +
</code>
  
[[Template:TraitAbility/Name|{{TraitAbility/Name|AbleSwimmer}}]]
+
Results in:
  
[[Template:TraitAbility/Description|{{TraitAbility/Description|AbleSwimmer}}]]
+
<code>
 +
{{TraitAbility/Type|AbleSwimmer}}
 +
{{TraitAbility/Name|AbleSwimmer}}
  
 +
{{TraitAbility/Description|AbleSwimmer}}
 +
</code>
 
</noinclude>
 
</noinclude>
 
<includeonly>
 
<includeonly>

Revision as of 19:33, 22 February 2020

USAGE

Used to create a single row detailing a trait / ability


Usage:

{{TraitAbility|enum=Enum of Ability}

e.g.

{{TraitAbility|enum=AbleSwimmer}


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

SETUP

This is driven by sub-templates for the data used (these also feed other uses of trait/ability data). To add a new trait to the template, do not edit this page, but edit the sub-templates and upload a trait image. This should be resized to 55x55px and should be named Trait_[enum].png, replacing [enum] with the name of the trait.

So:

{{TraitAbility/Type|AbleSwimmer}}

{{TraitAbility/Name|AbleSwimmer}}

{{TraitAbility/Description|AbleSwimmer}}

Results in:

Trait Able Swimmer

Lightly equipped. Your swimming speed is increased by 35%.