Difference between revisions of "Template:Armor"

From Stoneshard wiki
Jump to navigation Jump to search
(switch to Armor data page)
(removing old float and clear)
Line 4: Line 4:
|style="text-align:center;"|{{#if: {{:Armor data|{{ROOTPAGENAME}}|Protection}} | {{:Armor data|{{ROOTPAGENAME}}|Protection}} {{Translate|Protection|Properties}} {{Tooltip rule}} | }}
|style="text-align:center;"|{{#if: {{:Armor data|{{ROOTPAGENAME}}|Protection}} | {{:Armor data|{{ROOTPAGENAME}}|Protection}} {{Translate|Protection|Properties}} {{Tooltip rule}} | }}
|-
|-
|<div style="width:100%;float: left;color:#9d9a9a;">{{Test|{{ROOTPAGENAME}}}}</div>
|<div style="width:100%;color:#9d9a9a;">{{Test|{{ROOTPAGENAME}}}}</div>
<div style="clear: both;color:#9d9a9a;">{{Translate|Durability|Properties}}: <span style="color:white;">{{:Armor data|{{ROOTPAGENAME}}|Durability}}/{{:Armor data|{{ROOTPAGENAME}}|Durability}}</span></div>
<div style="color:#9d9a9a;">{{Translate|Durability|Properties}}: <span style="color:white;">{{:Armor data|{{ROOTPAGENAME}}|Durability}}/{{:Armor data|{{ROOTPAGENAME}}|Durability}}</span></div>
|-
|-
|style="color:#9d7969;text-align:justify"|{{Tooltip rule}}{{#if: {{#titleparts: {{PAGENAME}} | 1 | 2}} | {{#ifeq: {{PAGENAME}} | {{ROOTPAGENAME}}/Tooltip | {{:Armor data|{{ROOTPAGENAME}}|Description}} | {{Translate|{{ROOTPAGENAME}}|ItemDescriptions}}}} | {{:Armor data|{{ROOTPAGENAME}}|Description}}}}<div style="float:right;">[[File:Gold_Icon.png|18px|alt={{Translate|Price|Properties}}|link=|{{Translate|Price|Properties}}]]{{W|{{:Armor data|{{ROOTPAGENAME}}|Price}}}}</div><br />
|style="color:#9d7969;text-align:justify"|{{Tooltip rule}}{{#if: {{#titleparts: {{PAGENAME}} | 1 | 2}} | {{#ifeq: {{PAGENAME}} | {{ROOTPAGENAME}}/Tooltip | {{:Armor data|{{ROOTPAGENAME}}|Description}} | {{Translate|{{ROOTPAGENAME}}|ItemDescriptions}}}} | {{:Armor data|{{ROOTPAGENAME}}|Description}}}}<div style="float:right;">[[File:Gold_Icon.png|18px|alt={{Translate|Price|Properties}}|link=|{{Translate|Price|Properties}}]]{{W|{{:Armor data|{{ROOTPAGENAME}}|Price}}}}</div><br />

Revision as of 13:59, 21 June 2022

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}}}}
UNOBTAINABLE
Armor
Data does not exist. Data does not exist.
Data does not exist. Protection
Durability: Data does not exist./Data does not exist.

Data does not exist.
PriceData does not exist.

ArmorData does not exist.
Data does not exist.Data does not exist.
UNOBTAINABLE
Armor
Data does not exist. Data does not exist.
Data does not exist. Protection
Durability: Data does not exist./Data does not exist.

Data does not exist.
PriceData does not exist.

ArmorData does not exist.
Data does not exist.Data does not exist.
UNOBTAINABLE
Armor
Data does not exist. Data does not exist.
Data does not exist. Protection
Durability: Data does not exist./Data does not exist.

Data does not exist.
PriceData does not exist.

ArmorData does not exist.
Data does not exist.Data does not exist.
UNOBTAINABLE
Armor
Data does not exist. Data does not exist.
Data does not exist. Protection
Durability: Data does not exist./Data does not exist.

Data does not exist.
PriceData does not exist.

ArmorData does not exist.
Data does not exist.Data does not exist.