Difference between revisions of "Template:Armor"
Jump to navigation
Jump to search
(updated to load item data from Data page) |
(switch to Armor data page) |
||
Line 1: | Line 1: | ||
<includeonly>{| width=300px; | <includeonly>{| width=300px; | ||
|style="text-align:center;"|{{#if:{{: | |style="text-align:center;"|{{#if:{{:Armor data|{{ROOTPAGENAME}}|Unobtainable}}|{{Unobtainable}}<br />}}{{#if: {{:Armor data|{{ROOTPAGENAME}}|Rarity}} | <span style="font-size: 20px;">{{c|{{:Armor data|{{ROOTPAGENAME}}|Rarity}}|{{Translate|{{ROOTPAGENAME}}|ItemNames}}}}</span> <br /> <span style="color:#9d9a9a;">{{Translate|{{:Armor data|{{ROOTPAGENAME}}|Rarity}}|Properties}} | <span style="font-size: 20px;">{{Translate|{{ROOTPAGENAME}}|ItemNames}}</span> <br /> <span style="color:#9d9a9a;">{{Translate|Common|Properties}} }} {{Translate|{{:Armor data|{{ROOTPAGENAME}}|ArmorType}}|Properties}}</span>{{Tooltip rule}} | ||
|- | |- | ||
|style="text-align:center;"|{{#if: {{: | |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%;float: left;color:#9d9a9a;">{{Test|{{ROOTPAGENAME}}}}</div> | ||
<div style="clear: both;color:#9d9a9a;">{{Translate|Durability|Properties}}: <span style="color:white;">{{: | <div style="clear: both;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 | {{: | |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="text-align:center;"|[[File:{{#if:{{: | |style="text-align:center;"|[[File:{{#if:{{:Armor data|{{ROOTPAGENAME}}|Image}}|{{:Armor data|{{ROOTPAGENAME}}|Image}}|{{ROOTPAGENAME}}.png}}|class=image2x|link={{#ifeq:{{SUBPAGENAME}}|Tooltip|{{BASEPAGENAME}}|{{PAGENAME}}/Tooltip}}|alt={{Translate|{{ROOTPAGENAME}}|ItemNames}}|{{Translate|{{ROOTPAGENAME}}|ItemNames}}]]<!-- | ||
-->{{#if:{{: | -->{{#if:{{:Armor data|{{ROOTPAGENAME}}|Image2}}|[[File:{{:Armor data|{{ROOTPAGENAME}}|Image2}}|class=image2x|link={{#ifeq:{{SUBPAGENAME}}|Tooltip|{{BASEPAGENAME}}|{{PAGENAME}}/Tooltip}}|alt={{#if:{{:Armor data|{{ROOTPAGENAME}}|Name2}}|{{Translate|{{:Armor data|{{ROOTPAGENAME}}|Name2}}|ItemNames}}|{{ROOTPAGENAME}}}}|{{#if:{{:Armor data|{{ROOTPAGENAME}}|Name2}}|{{Translate|{{:Armor data|{{ROOTPAGENAME}}|Name2}}|ItemNames}}|{{Translate|{{ROOTPAGENAME}}|ItemNames}}}}]]<!-- | ||
-->{{#if:{{: | -->{{#if:{{:Armor data|{{ROOTPAGENAME}}|Image3}}|<br />[[File:{{:Armor data|{{ROOTPAGENAME}}|Image3}}|class=image2x|link={{#ifeq:{{SUBPAGENAME}}|Tooltip|{{BASEPAGENAME}}|{{PAGENAME}}/Tooltip}}|alt={{#if:{{:Armor data|{{ROOTPAGENAME}}|Name3}}|{{Translate|{{:Armor data|{{ROOTPAGENAME}}|Name3}}|ItemNames}}|{{ROOTPAGENAME}}}}|{{#if:{{:Armor data|{{ROOTPAGENAME}}|Name3}}|{{Translate|{{:Armor data|{{ROOTPAGENAME}}|Name3}}|ItemNames}}|{{Translate|{{ROOTPAGENAME}}|ItemNames}}}}]]<!-- | ||
-->{{#if:{{: | -->{{#if:{{:Armor data|{{ROOTPAGENAME}}|Image4}}|[[File:{{:Armor data|{{ROOTPAGENAME}}|Image4}}|class=image2x|link={{#ifeq:{{SUBPAGENAME}}|Tooltip|{{BASEPAGENAME}}|{{PAGENAME}}/Tooltip}}|alt={{#if:{{:Armor data|{{ROOTPAGENAME}}|Name4}}|{{Translate|{{:Armor data|{{ROOTPAGENAME}}|Name4}}|ItemNames}}|{{ROOTPAGENAME}}}}|{{#if:{{:Armor data|{{ROOTPAGENAME}}|Name4}}|{{Translate|{{:Armor data|{{ROOTPAGENAME}}|Name4}}|ItemNames}}|{{Translate|{{ROOTPAGENAME}}|ItemNames}}}}]]}}}}}} | ||
|} | |} | ||
{{#if: {{#titleparts: {{PAGENAME}} | 1 | 2}} | {{#ifeq: {{PAGENAME}} | {{ROOTPAGENAME}}/Tooltip |[[Category:{{: | {{#if: {{#titleparts: {{PAGENAME}} | 1 | 2}} | {{#ifeq: {{PAGENAME}} | {{ROOTPAGENAME}}/Tooltip |[[Category:{{:Armor data|{{ROOTPAGENAME}}|ArmorType}} Tooltips]]|{{#if: {{#titleparts: {{PAGENAME}} | 1 | 3}}|[[Category: {{uc:{{#titleparts: {{PAGENAME}} | 1 | 2}}}} {{:Armor data|{{ROOTPAGENAME}}|ArmorType}} Tooltips]]|[[Category: {{uc:{{#titleparts: {{PAGENAME}} | 1 | 2}}}} {{:Armor data|{{ROOTPAGENAME}}|ArmorType}}]]}}}}|[[Category: {{:Armor data|{{ROOTPAGENAME}}|ArmorType}}]]}}</includeonly><noinclude>{{doc}} | ||
[[Category:Tooltip templates]]</noinclude> | [[Category:Tooltip templates]]</noinclude> |
Revision as of 11:22, 21 June 2022
Documentation
[purge]
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. Data 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. Data 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. Data 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. Data does not exist. |
ArmorData does not exist. Data does not exist.Data does not exist. |