Template:ValidateTrait/doc: Difference between revisions

From Descent-Community Wiki 1.2
Jump to navigation Jump to search
(Document belt in the list of valid traits)
m (typo in wand)
 
(One intermediate revision by the same user not shown)
Line 42: Line 42:
|-
|-
|trinket        || {{ValidateTrait|trinket}}
|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)