Template:Armor/doc

From Stoneshard wiki
< Template:Armor
Revision as of 13:06, 28 May 2020 by 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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Template-info.png Documentation

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 itself 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.