Difference between revisions of "Template:Armor test"

From Stoneshard wiki
Jump to navigation Jump to search
m (8 revisions imported)
(replaced ROOTPAGENAME with a var to allow override similar to the weapons test.)
Line 1: Line 1:
<includeonly>{| width=300px;
<includeonly>{{#vardefine:Page|{{#if:{{{1|}}}|{{{1|}}}|{{ROOTPAGENAME}}}}}}{| width=300px;
|style="text-align:center;"|{{#if:{{:Data|{{ROOTPAGENAME}}|Unobtainable}}|{{Unobtainable}}<br />}}{{#if: {{:Data|{{ROOTPAGENAME}}|Rarity}} | <span style="font-size: 20px;">{{c|{{:Data|{{ROOTPAGENAME}}|Rarity}}|{{Translate|{{ROOTPAGENAME}}|ItemNames}}}}</span> <br /> <span style="color:#9d9a9a;">{{Translate|{{:Data|{{ROOTPAGENAME}}|Rarity}}|Properties}} | <span style="font-size: 20px;">{{Translate|{{ROOTPAGENAME}}|ItemNames}}</span> <br /> <span style="color:#9d9a9a;">{{Translate|Common|Properties}} }} {{Translate|{{:Data|{{ROOTPAGENAME}}|ArmorType}}|Properties}}</span>{{Tooltip rule}}
|style="text-align:center;"|{{#if:{{:Data|{{#var:Page}}|Unobtainable}}|{{Unobtainable}}<br />}}{{#if: {{:Data|{{#var:Page}}|Rarity}} | <span style="font-size: 20px;">{{c|{{:Data|{{#var:Page}}|Rarity}}|{{Translate|{{#var:Page}}|ItemNames}}}}</span> <br /> <span style="color:#9d9a9a;">{{Translate|{{:Data|{{#var:Page}}|Rarity}}|Properties}} | <span style="font-size: 20px;">{{Translate|{{#var:Page}}|ItemNames}}</span> <br /> <span style="color:#9d9a9a;">{{Translate|Common|Properties}} }} {{Translate|{{:Data|{{#var:Page}}|ArmorType}}|Properties}}</span>{{Tooltip rule}}
|-
|-
|style="text-align:center;"|{{#if: {{:Data|{{ROOTPAGENAME}}|Protection}} | {{:Data|{{ROOTPAGENAME}}|Protection}} {{Translate|Protection|Properties}} {{Tooltip rule}} | }}
|style="text-align:center;"|{{#if: {{:Data|{{#var:Page}}|Protection}} | {{:Data|{{#var:Page}}|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|{{#var:Page}}}}</div>
<div style="clear: both;color:#9d9a9a;">{{Translate|Durability|Properties}}: <span style="color:white;">{{:Data|{{ROOTPAGENAME}}|Durability}}/{{:Data|{{ROOTPAGENAME}}|Durability}}</span></div>
<div style="clear: both;color:#9d9a9a;">{{Translate|Durability|Properties}}: <span style="color:white;">{{:Data|{{#var:Page}}|Durability}}/{{:Data|{{#var:Page}}|Durability}}</span></div>
|-
|-
|style="color:#9d7969;text-align:justify"|{{Tooltip rule}}{{#if: {{#titleparts: {{PAGENAME}} | 1 | 2}} | {{#ifeq: {{PAGENAME}} | {{ROOTPAGENAME}}/Tooltip | {{:Data|{{ROOTPAGENAME}}|Description}} | {{Translate|{{ROOTPAGENAME}}|ItemDescriptions}}}} | {{:Data|{{ROOTPAGENAME}}|Description}}}}<div style="float:right;">[[File:Gold_Icon.png|18px|alt={{Translate|Price|Properties}}|link=|{{Translate|Price|Properties}}]]{{W|{{:Data|{{ROOTPAGENAME}}|Price}}}}</div><br />
|style="color:#9d7969;text-align:justify"|{{Tooltip rule}}{{#if: {{#titleparts: {{PAGENAME}} | 1 | 2}} | {{#ifeq: {{PAGENAME}} | {{#var:Page}}/Tooltip | {{:Data|{{#var:Page}}|Description}} | {{Translate|{{#var:Page}}|ItemDescriptions}}}} | {{:Data|{{#var:Page}}|Description}}}}<div style="float:right;">[[File:Gold_Icon.png|18px|alt={{Translate|Price|Properties}}|link=|{{Translate|Price|Properties}}]]{{W|{{:Data|{{#var:Page}}|Price}}}}</div><br />
|-
|-
|style="text-align:center;"|[[File:{{#if:{{:Data|{{ROOTPAGENAME}}|Image}}|{{:Data|{{ROOTPAGENAME}}|Image}}|{{ROOTPAGENAME}}.png}}|class=image2x|link={{#ifeq:{{SUBPAGENAME}}|Tooltip|{{BASEPAGENAME}}|{{PAGENAME}}/Tooltip}}|alt={{Translate|{{ROOTPAGENAME}}|ItemNames}}|{{Translate|{{ROOTPAGENAME}}|ItemNames}}]]<!--
|style="text-align:center;"|[[File:{{#if:{{:Data|{{#var:Page}}|Image}}|{{:Data|{{#var:Page}}|Image}}|{{#var:Page}}.png}}|class=image2x|link={{#ifeq:{{SUBPAGENAME}}|Tooltip|{{BASEPAGENAME}}|{{PAGENAME}}/Tooltip}}|alt={{Translate|{{#var:Page}}|ItemNames}}|{{Translate|{{#var:Page}}|ItemNames}}]]<!--


-->{{#if:{{:Data|{{ROOTPAGENAME}}|Image2}}|[[File:{{:Data|{{ROOTPAGENAME}}|Image2}}|class=image2x|link={{#ifeq:{{SUBPAGENAME}}|Tooltip|{{BASEPAGENAME}}|{{PAGENAME}}/Tooltip}}|alt={{#if:{{:Data|{{ROOTPAGENAME}}|Name2}}|{{Translate|{{:Data|{{ROOTPAGENAME}}|Name2}}|ItemNames}}|{{ROOTPAGENAME}}}}|{{#if:{{:Data|{{ROOTPAGENAME}}|Name2}}|{{Translate|{{:Data|{{ROOTPAGENAME}}|Name2}}|ItemNames}}|{{Translate|{{ROOTPAGENAME}}|ItemNames}}}}]]<!--
-->{{#if:{{:Data|{{#var:Page}}|Image2}}|[[File:{{:Data|{{#var:Page}}|Image2}}|class=image2x|link={{#ifeq:{{SUBPAGENAME}}|Tooltip|{{BASEPAGENAME}}|{{PAGENAME}}/Tooltip}}|alt={{#if:{{:Data|{{#var:Page}}|Name2}}|{{Translate|{{:Data|{{#var:Page}}|Name2}}|ItemNames}}|{{#var:Page}}}}|{{#if:{{:Data|{{#var:Page}}|Name2}}|{{Translate|{{:Data|{{#var:Page}}|Name2}}|ItemNames}}|{{Translate|{{#var:Page}}|ItemNames}}}}]]<!--


-->{{#if:{{:Data|{{ROOTPAGENAME}}|Image3}}|<br />[[File:{{:Data|{{ROOTPAGENAME}}|Image3}}|class=image2x|link={{#ifeq:{{SUBPAGENAME}}|Tooltip|{{BASEPAGENAME}}|{{PAGENAME}}/Tooltip}}|alt={{#if:{{:Data|{{ROOTPAGENAME}}|Name3}}|{{Translate|{{:Data|{{ROOTPAGENAME}}|Name3}}|ItemNames}}|{{ROOTPAGENAME}}}}|{{#if:{{:Data|{{ROOTPAGENAME}}|Name3}}|{{Translate|{{:Data|{{ROOTPAGENAME}}|Name3}}|ItemNames}}|{{Translate|{{ROOTPAGENAME}}|ItemNames}}}}]]<!--
-->{{#if:{{:Data|{{#var:Page}}|Image3}}|<br />[[File:{{:Data|{{#var:Page}}|Image3}}|class=image2x|link={{#ifeq:{{SUBPAGENAME}}|Tooltip|{{BASEPAGENAME}}|{{PAGENAME}}/Tooltip}}|alt={{#if:{{:Data|{{#var:Page}}|Name3}}|{{Translate|{{:Data|{{#var:Page}}|Name3}}|ItemNames}}|{{#var:Page}}}}|{{#if:{{:Data|{{#var:Page}}|Name3}}|{{Translate|{{:Data|{{#var:Page}}|Name3}}|ItemNames}}|{{Translate|{{#var:Page}}|ItemNames}}}}]]<!--


-->{{#if:{{:Data|{{ROOTPAGENAME}}|Image4}}|[[File:{{:Data|{{ROOTPAGENAME}}|Image4}}|class=image2x|link={{#ifeq:{{SUBPAGENAME}}|Tooltip|{{BASEPAGENAME}}|{{PAGENAME}}/Tooltip}}|alt={{#if:{{:Data|{{ROOTPAGENAME}}|Name4}}|{{Translate|{{:Data|{{ROOTPAGENAME}}|Name4}}|ItemNames}}|{{ROOTPAGENAME}}}}|{{#if:{{:Data|{{ROOTPAGENAME}}|Name4}}|{{Translate|{{:Data|{{ROOTPAGENAME}}|Name4}}|ItemNames}}|{{Translate|{{ROOTPAGENAME}}|ItemNames}}}}]]}}}}}}
-->{{#if:{{:Data|{{#var:Page}}|Image4}}|[[File:{{:Data|{{#var:Page}}|Image4}}|class=image2x|link={{#ifeq:{{SUBPAGENAME}}|Tooltip|{{BASEPAGENAME}}|{{PAGENAME}}/Tooltip}}|alt={{#if:{{:Data|{{#var:Page}}|Name4}}|{{Translate|{{:Data|{{#var:Page}}|Name4}}|ItemNames}}|{{#var:Page}}}}|{{#if:{{:Data|{{#var:Page}}|Name4}}|{{Translate|{{:Data|{{#var:Page}}|Name4}}|ItemNames}}|{{Translate|{{#var:Page}}|ItemNames}}}}]]}}}}}}
|}
|}
{{#if: {{#titleparts: {{PAGENAME}} | 1 | 2}} | {{#ifeq: {{PAGENAME}} | {{ROOTPAGENAME}}/Tooltip |[[Category:{{:Data|{{ROOTPAGENAME}}|ArmorType}} Tooltips]]|{{#if: {{#titleparts: {{PAGENAME}} | 1 | 3}}|[[Category: {{uc:{{#titleparts: {{PAGENAME}} | 1 | 2}}}} {{:Data|{{ROOTPAGENAME}}|ArmorType}} Tooltips]]|[[Category: {{uc:{{#titleparts: {{PAGENAME}} | 1 | 2}}}} {{:Data|{{ROOTPAGENAME}}|ArmorType}}]]}}}}|[[Category: {{:Data|{{ROOTPAGENAME}}|ArmorType}}]]}}</includeonly><noinclude>{{doc}}
{{#if: {{#titleparts: {{PAGENAME}} | 1 | 2}} | {{#ifeq: {{PAGENAME}} | {{#var:Page}}/Tooltip |[[Category:{{:Data|{{#var:Page}}|ArmorType}} Tooltips]]|{{#if: {{#titleparts: {{PAGENAME}} | 1 | 3}}|[[Category: {{uc:{{#titleparts: {{PAGENAME}} | 1 | 2}}}} {{:Data|{{#var:Page}}|ArmorType}} Tooltips]]|[[Category: {{uc:{{#titleparts: {{PAGENAME}} | 1 | 2}}}} {{:Data|{{#var:Page}}|ArmorType}}]]}}}}|[[Category: {{:Data|{{#var:Page}}|ArmorType}}]]}}</includeonly><noinclude>{{doc}}
[[Category:Tooltip templates]]</noinclude>
[[Category:Tooltip templates]]</noinclude>

Revision as of 14:48, 27 July 2022

This template has no documentation. If you know how to use this template, please add some.