Difference between revisions of "Template:Armor/doc"

From Stoneshard wiki
Jump to navigation Jump to search
m (2 revisions imported)
Line 1: Line 1:
{{Doc/start}}
{{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.
This is armor template created for use together with the [[Template:Tooltip hover box]] template to display tooltip with item attributes for armor and jewelry.


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:
Usage: Copy this code to any page where you want to display the item tooltip:
<nowiki>
{{{{{1|Tooltip hover box}}}|title={{Armor}}}}</nowiki>


<nowiki><includeonly>{{#switch: {{{1}}}
You can provide the item name as first parameter, otherwise the pagename is used.
|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></nowiki>
This data is invisible on the page itself, thanks to the includeonly tags.


By default, the page is also labelled with a category corresponding to the item type (ie. [[Venemist's Talisman]] will receive the <code>Category: Amulet</code>).
If you don't want to add this category to a page, add the <code>category</code> parameter:
<nowiki>
{{{{{1|Tooltip hover box}}}|title={{Armor|Venemist's Talisman|category=no}}}}</nowiki>


Next, copy this code to [[Witch Hat]] or [[Witch Hat/Tooltip]] or [[Witch Hat/anything]] page:
{{{{{1|Tooltip hover box}}}|title={{Armor|Venemist's Talisman|category=no}}}}
<nowiki>
{{ {{{1|Tooltip hover box}}}
|title= {{Armor}}
}}</nowiki>
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 12:00, 26 June 2023

Template-info.png Documentation

This is armor template created for use together with the Template:Tooltip hover box template to display tooltip with item attributes for armor and jewelry.

Usage: Copy this code to any page where you want to display the item tooltip:

{{{{{1|Tooltip hover box}}}|title={{Armor}}}}

You can provide the item name as first parameter, otherwise the pagename is used.

By default, the page is also labelled with a category corresponding to the item type (ie. Venemist's Talisman will receive the Category: Amulet). If you don't want to add this category to a page, add the category parameter:

{{{{{1|Tooltip hover box}}}|title={{Armor|Venemist's Talisman|category=no}}}}
Venemist's Talisman
unique amulet
Skills Energy Cost: -9%
Spells Energy Cost: -9%
Cooldowns Duration: -9%
 
Experience Gain: +20%
 
Durability: 66/66

Venemist's Talisman
Price1800

Venemist's Talisman