Template:ValidateTrait: Difference between revisions
Jump to navigation
Jump to search
(Add "ring" to the list of valid traits) |
(add new trait "Wand") |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<onlyinclude>{{#switch:{{lc:{{{1}}}}} | <onlyinclude>{{#switch:{{lc:{{{1}}}}} | ||
|axe = Axe | |axe = Axe | ||
|belt = Belt | |||
|blade = Blade | |blade = Blade | ||
|book = Book | |book = Book | ||
Line 17: | Line 18: | ||
|shield = Shield | |shield = Shield | ||
|trinket = Trinket | |trinket = Trinket | ||
|wand = Wand | |||
|#default= | |#default= | ||
}}</onlyinclude><noinclude>{{documentation}}</noinclude> | }}</onlyinclude><noinclude>{{documentation}}</noinclude> |
Latest revision as of 11:49, 16 September 2016
Template documentation (for the above template, sometimes hidden or invisible)
- 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) |
Visit Template:ValidateTrait/doc to edit this text! (How does this work?)