Template:ValidateTrait/doc: Difference between revisions
Jump to navigation
Jump to search
(Template series for Infobox card) |
(Document ring as valid trait) |
||
Line 29: | Line 29: | ||
|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 38: | ||
|- | |- | ||
|shield || {{ValidateTrait|shield}} | |shield || {{ValidateTrait|shield}} | ||
|- | |||
|trinket || {{ValidateTrait|trinket}} | |||
|- | |- | ||
|Default (empty) || {{ValidateAct}} | |Default (empty) || {{ValidateAct}} | ||
|} | |} |
Revision as of 22:26, 7 May 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 |
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 |
Default (empty) |