Difference between revisions of "Template:Armor/doc"
old>Realpsojed (Created page with "{{Doc/start}} 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...") |
old>Realpsojed (mention the new Armor template so that I don't forget about it) |
||
Line 2: | Line 2: | ||
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. | 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 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: | ||
<nowiki><includeonly>{{#switch: {{{1}}} | <nowiki><includeonly>{{#switch: {{{1}}} | ||
Line 30: | Line 30: | ||
}}</nowiki> | }}</nowiki> | ||
It will automatically load the hat's data and fill them into this format. Go to [[Witch Hat]] to see the result. | 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. | |||
{{Doc/end}} | {{Doc/end}} |
Revision as of 15:49, 12 May 2021
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.