Difference between revisions of "Template:TraitAbility"

From Holdfast: Nations At War
Jump to navigation Jump to search
m (Undo revision 903 by Falo (talk))
Tag: Undo
m (Updated to be driven by sub-template data)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 
Used to create a single row detailing a trait / ability
 
Used to create a single row detailing a trait / ability
 
  
 
<!--{{#cargo_declare:_table=TraitAbility|Type=String (allowed values=Trait,Ability;mandatory)|Enum=String (mandatory;unique)|Name=String|Description=Wikitext string (size=500)}}-->
 
<!--{{#cargo_declare:_table=TraitAbility|Type=String (allowed values=Trait,Ability;mandatory)|Enum=String (mandatory;unique)|Name=String|Description=Wikitext string (size=500)}}-->
  
 
Usage:
 
Usage:
<pre>{{TraitAbility|type=Trait/Ability|enum=Enum of Ability|name=Friendly name|description=Text description of ability}}</pre>
+
<pre>{{TraitAbility|enum=Enum of Ability|style=TBC|width=TBC}}</pre>
 +
 
 +
{{TraitAbility|enum=AbleSwimmer|style=TBC|width=TBC}}
 +
 
 +
Note that this is now driven by sub-templates of the data:
 +
<pre>
 +
{{TraitAbility/Type|AbleSwimmer}}
 +
{{TraitAbility/Name|AbleSwimmer}}
 +
{{TraitAbility/Description|AbleSwimmer}}
 +
</pre>
 +
 
 +
{{TraitAbility/Type|AbleSwimmer}}
 +
 
 +
{{TraitAbility/Name|AbleSwimmer}}
 +
 
 +
{{TraitAbility/Description|AbleSwimmer}}
  
 
</noinclude>
 
</noinclude>
Line 13: Line 27:
 
{| class=wikitable style="margin-bottom:0px;margin-top:0px"
 
{| class=wikitable style="margin-bottom:0px;margin-top:0px"
 
|-
 
|-
| style="width: 100px" | [[File:{{{type}}}_{{{ enum|blank }}}.png]]
+
| style="width: 100px;text-align: center" | [[File:{{TraitAbility/Type|{{{enum}}}}}_{{{ enum|blank }}}.png]]
| style="width: 350px" | {{{ name }}}
+
| style="width: 350px" | {{TraitAbility/Name|{{{enum}}}}}
| style="width: 500px" | {{{ description }}}
+
| style="width: 500px" | {{TraitAbility/Description|{{{enum}}}}}
 
|}</includeonly>
 
|}</includeonly>

Revision as of 20:22, 20 August 2019

Used to create a single row detailing a trait / ability


Usage:

{{TraitAbility|enum=Enum of Ability|style=TBC|width=TBC}}


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

Note that this is now driven by sub-templates of the data:

{{TraitAbility/Type|AbleSwimmer}}
{{TraitAbility/Name|AbleSwimmer}}
{{TraitAbility/Description|AbleSwimmer}}

Trait

Able Swimmer

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