Template:ValidateWorn/doc: Difference between revisions
Jump to navigation
Jump to search
(Template series for Infobox card) |
(Document boots as Other) |
||
| (One intermediate revision by the same user not shown) | |||
| 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}} | ||
|- | |- | ||
| | |helmet || {{ValidateWorn|helmet}} | ||
|- | |- | ||
| | |belt || {{ValidateWorn|belt}} | ||
|- | |- | ||
| | |boot<br>boots<br>other<br>others || {{ValidateWorn|other}} | ||
|- | |- | ||
|Default (empty) || {{ValidateAct}} | |||
|Default (empty) | |||
|} | |} | ||
Latest revision as of 17:25, 15 June 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 |
| helmet | Helmet |
| belt | Belt |
| boot boots other others |
Other |
| Default (empty) |