Template:ValidateWorn/doc: Difference between revisions

From Descent-Community Wiki 1.2
Jump to navigation Jump to search
(Template series for Infobox card)
 
(add 2 hand)
Line 5: Line 5:


{| class="wikitable"
{| class="wikitable"
!Input                 !! Returns
!Input                             !! Returns
|-
|-
|one hand <br> 1 hand   || {{ValidateWorn|one Hand}}
|one hand <br> 1 hand               || {{ValidateWorn|one Hand}}
|-
|-
|two hands <br> 2 hands || {{ValidateWorn|two Hands}}
|two hands <br> 2 hand <br> 2 hands || {{ValidateWorn|two Hands}}
|-
|-
|armor                 || {{ValidateWorn|armor}}
|armor                             || {{ValidateWorn|armor}}
|-
|-
|boots                 || {{ValidateWorn|boots}}
|boots                             || {{ValidateWorn|boots}}
|-
|-
|helmet                 || {{ValidateWorn|helmet}}
|helmet                             || {{ValidateWorn|helmet}}
|-
|-
|belt                   || {{ValidateWorn|belt}}
|belt                               || {{ValidateWorn|belt}}
|-
|-
|other                 || {{ValidateWorn|other}}
|other                             || {{ValidateWorn|other}}
|-
|-
|Default (empty)       || {{ValidateAct}}
|Default (empty)                   || {{ValidateAct}}
|}
|}

Revision as of 09:37, 13 April 2016

Description
This template is used to validate the worn attribute. It returns a consistent capitalised version, or an empty string on an invalid worn attribute.
Syntax
{{ValidateWorn|<worn>}}
Input Returns
one hand
1 hand
One Hand
two hands
2 hand
2 hands
Two Hands
armor Armor
boots Other
helmet Helmet
belt Belt
other Other
Default (empty)