Difference between revisions of "Template:Armor/doc"

From Stoneshard wiki
Jump to navigation Jump to search
m (2 revisions imported)
(add more examples)
 
(One intermediate revision by the same user not shown)
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|Jousting Armor|category=no}}}}
{{ {{{1|Tooltip hover box}}}
{{{{{1|Tooltip hover box}}}|title={{Armor|Nistrian Noble Cloak|category=no}}}}
|title= {{Armor}}
{{{{{1|Tooltip hover box}}}|title={{Armor|Guardsman Shield|category=no}}}}
}}</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}}

Latest revision as of 11:17, 11 December 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
Jousting Armor
unique heavy chestpiece
22 Protection
Physical Resistance: +33%
 
Slashing Resistance: +5%
 
Shock Resistance: -20%
 
Bleed Resistance: +25%
Move Resistance: +10%
Pain Resistance: +15%
 
Dodge Chance: -20%
Damage Taken: -5%
 
Energy: -24
Energy Restoration: -7%
 
Durability: 450/450

Jousting Armor
Price5280

Jousting Armor
Nistrian Noble Cloak
common light cloak
Physical Resistance: +5%
 
Move Resistance: +10%
Control Resistance: +10%
 
Block Chance: +5%
Block Power Recovery: +5%
Dodge Chance: +3%
 
Fortitude: +10%
 
Durability: 150/150

Nistrian Noble Cloak
Price1800

Nistrian Noble Cloak
Guardsman Shield
unique heavy shield
Move Resistance: +40%
 
Block Chance: +36%
Block Power: +40
Block Power Recovery: -15%
Dodge Chance: -25%
Damage Taken: -10%
Damage Reflection: +5%
 
Energy: -22
Energy Restoration: -7%
 
Fortitude: +15%
 
Durability: 520/520

Guardsman Shield
Price4500

Guardsman Shield