Difference between revisions of "Template:Armor test"

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

Revision as of 15:07, 27 July 2022

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