Template:ValidateWorn/doc: Difference between revisions
Jump to navigation
Jump to search
(Template series for Infobox card) |
(add 2 hand) |
||
Line 5: | Line 5: | ||
{| class="wikitable" | {| class="wikitable" | ||
!Input | !Input !! Returns | ||
|- | |- | ||
|one hand <br> 1 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 | |armor || {{ValidateWorn|armor}} | ||
|- | |- | ||
|boots | |boots || {{ValidateWorn|boots}} | ||
|- | |- | ||
|helmet | |helmet || {{ValidateWorn|helmet}} | ||
|- | |- | ||
|belt | |belt || {{ValidateWorn|belt}} | ||
|- | |- | ||
|other | |other || {{ValidateWorn|other}} | ||
|- | |- | ||
|Default (empty) | |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) |