Template:Armor/doc
This is armor template created for use together with the Template:Tooltip hover box template on a specific armor's page or armor's tooltip page.
Usage: The item page must contain the armor's data before this Template works. For example, if I wanted to create the Witch Hat page, I'll add this code to the start of the page:
<includeonly>{{#switch: {{{1}}} |ArmorType = Headgear |Rarity = Unique |Protection = |Properties1 = Magic Resistance |Values1 = {{pos|+5%}} |Properties2 = Spells Energy Cost |Values2 = {{pos|-5%}} |Properties3 = Cooldowns Duration |Values3 = {{pos|-5%}} |Properties4 = Magic Power |Values4 = {{pos|+5%}} |Durability = 25 |Description = It's old and dusty. But for some reason you are compelled to put it on your head. |Price = 325 |#default = }}</includeonly>
This data is invisible on the page itself, thanks to the includeonly tags.
Next, copy this code to Witch Hat or Witch Hat/Tooltip or Witch Hat/anything page:
{{ {{{1|Tooltip hover box}}} |title= {{Armor}} }}
It will automatically load the hat's data and fill them into this format. Go to Witch Hat to see the result.
This template will be updated with code from Template:Armor test once we switch from using "PropertiesX" parameters to using Attribute Names (Armor Penetration) as parameters.