Template:ValidateTrait/doc: Difference between revisions
Jump to navigation
Jump to search
(Template series for Infobox card) |
m (typo in wand) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 8: | Line 8: | ||
|- | |- | ||
|axe || {{ValidateTrait|axe}} | |axe || {{ValidateTrait|axe}} | ||
|- | |||
|belt || {{ValidateTrait|belt}} | |||
|- | |- | ||
|blade || {{ValidateTrait|blade}} | |blade || {{ValidateTrait|blade}} | ||
Line 29: | Line 31: | ||
|light Armor || {{ValidateTrait|light Armor}} | |light Armor || {{ValidateTrait|light Armor}} | ||
|- | |- | ||
| | |magic || {{ValidateTrait|magic}} | ||
|- | |- | ||
| | |ring || {{ValidateTrait|ring}} | ||
|- | |- | ||
|rune || {{ValidateTrait|rune}} | |rune || {{ValidateTrait|rune}} | ||
Line 38: | Line 40: | ||
|- | |- | ||
|shield || {{ValidateTrait|shield}} | |shield || {{ValidateTrait|shield}} | ||
|- | |||
|trinket || {{ValidateTrait|trinket}} | |||
|- | |||
|wand || {{ValidateTrait|wand}} | |||
|- | |- | ||
|Default (empty) || {{ValidateAct}} | |Default (empty) || {{ValidateAct}} | ||
|} | |} |
Latest revision as of 11:50, 16 September 2016
- Description
- This template is used to validate the trait attribute. It returns a consistent capitalised version, or an empty string on an invalid trait attribute.
- Syntax
- {{ValidateTrait|<trait>}}
Input | Returns |
---|---|
axe | Axe |
belt | Belt |
blade | Blade |
book | Book |
boots | Boots |
bow | Bow |
cloak | Cloak |
exotic | Exotic |
hammer | Hammer |
heavy Armor | Heavy Armor |
helmet | Helmet |
light Armor | Light Armor |
magic | Magic |
ring | Ring |
rune | Rune |
staff | Staff |
shield | Shield |
trinket | Trinket |
wand | Wand |
Default (empty) |