Difference between revisions of "Template:Armor"

From Stoneshard wiki
Jump to navigation Jump to search
old>Phoe nixx
(added Name2...Name4 parameters for the case of armor with multiple appearances with alternative names)
old>Realpsojed
(added translation templates)
Line 1: Line 1:
<includeonly>{| width=300px;
<includeonly>{| width=300px;
|style="text-align:center;"|{{#if: {{:{{ROOTPAGENAME}}|Rarity}} | <span style="font-size: 20px;">{{c|{{:{{ROOTPAGENAME}}|Rarity}}|{{ROOTPAGENAME}}}}</span> <br /> <span style="color:#9d9a9a;">{{:{{ROOTPAGENAME}}|Rarity}} | <span style="font-size: 20px;">{{ROOTPAGENAME}}</span> <br /> <span style="color:#9d9a9a;">Common }} {{:{{ROOTPAGENAME}}|ArmorType}}</span><hr style="height:2px;background-color:#33323f;box-shadow: 0 2px 13121d;margin: 10px 0 10px 0;">
|style="text-align:center;"|{{#if: {{:{{ROOTPAGENAME}}|Rarity}} | <span style="font-size: 20px;">{{c|{{:{{ROOTPAGENAME}}|Rarity}}|{{Translate|{{ROOTPAGENAME}}|ItemNames}}}}</span> <br /> <span style="color:#9d9a9a;">{{Translate|{{:{{ROOTPAGENAME}}|Rarity}}|Texts}} | <span style="font-size: 20px;">{{Translate|{{ROOTPAGENAME}}|ItemNames}}</span> <br /> <span style="color:#9d9a9a;">{{Translate|Common|Texts}} }} {{Translate|{{:{{ROOTPAGENAME}}|ArmorType}}|Texts}}</span><hr style="height:2px;background-color:#33323f;box-shadow: 0 2px 13121d;margin: 10px 0 10px 0;">
|-
|-
|style="text-align:center;"|{{#if: {{:{{ROOTPAGENAME}}|Protection}} | {{:{{ROOTPAGENAME}}|Protection}} Protection <hr style="height:2px;background-color:#33323f;box-shadow: 0 2px 13121d;margin: 10px 0 10px 0;"> | }}
|style="text-align:center;"|{{#if: {{:{{ROOTPAGENAME}}|Protection}} | {{:{{ROOTPAGENAME}}|Protection}} {{Translate|Protection|Texts}} <hr style="height:2px;background-color:#33323f;box-shadow: 0 2px 13121d;margin: 10px 0 10px 0;"> | }}
|-
|-
|<div style="width:100%;float: left;color:#9d9a9a;">{{Properties|{{ROOTPAGENAME}}}}</div>
|<div style="width:100%;float: left;color:#9d9a9a;">{{Properties|{{ROOTPAGENAME}}}}</div>
<div style="clear: both;color:#9d9a9a;">Durability: <span style="color:white;">{{:{{ROOTPAGENAME}}|Durability}}/{{:{{ROOTPAGENAME}}|Durability}}</span></div>
<div style="clear: both;color:#9d9a9a;">{{Translate|Durability|Texts}}: <span style="color:white;">{{:{{ROOTPAGENAME}}|Durability}}/{{:{{ROOTPAGENAME}}|Durability}}</span></div>
|-
|-
|style="color:#9d7969;text-align:justify"|<hr style="height:2px;background-color:#33323f;box-shadow: 0 2px 13121d;margin: 10px 0 10px 0;">{{:{{ROOTPAGENAME}}|Description}}<div style="float:right;">[[File:Gold_Icon.png|18px|alt=Price|link=|Price]]{{W|{{:{{ROOTPAGENAME}}|Price}}}}</div><br />
|style="color:#9d7969;text-align:justify"|<hr style="height:2px;background-color:#33323f;box-shadow: 0 2px 13121d;margin: 10px 0 10px 0;">{{#if: {{#titleparts: {{PAGENAME}} | 1 | 2}} | {{#ifeq: {{PAGENAME}} | {{ROOTPAGENAME}}/Tooltip | {{:{{ROOTPAGENAME}}|Description}} | {{Translate|{{ROOTPAGENAME}}|ItemDescriptions}}}} | {{:{{ROOTPAGENAME}}|Description}}}}<div style="float:right;">[[File:Gold_Icon.png|18px|alt=Price|link=|Price]]{{W|{{:{{ROOTPAGENAME}}|Price}}}}</div><br />
|-
|-
|style="text-align:center;"|[[File:{{#if:{{:{{ROOTPAGENAME}}|Image}}|{{:{{ROOTPAGENAME}}|Image}}|{{ROOTPAGENAME}}.png}}|link={{ROOTPAGENAME}}/Tooltip|alt={{ROOTPAGENAME}}|{{ROOTPAGENAME}}]]<!--
|style="text-align:center;"|[[File:{{#if:{{:{{ROOTPAGENAME}}|Image}}|{{:{{ROOTPAGENAME}}|Image}}|{{ROOTPAGENAME}}.png}}|link={{#ifeq:{{SUBPAGENAME}}|Tooltip|{{BASEPAGENAME}}|{{PAGENAME}}/Tooltip}}|alt={{Translate|{{ROOTPAGENAME}}|ItemNames}}|{{Translate|{{ROOTPAGENAME}}|ItemNames}}]]<!--


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


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


-->{{#if:{{:{{ROOTPAGENAME}}|Image4}}|[[File:{{:{{ROOTPAGENAME}}|Image4}}|link={{ROOTPAGENAME}}/Tooltip|alt={{#if:{{:{{ROOTPAGENAME}}|Name4}}|{{:{{ROOTPAGENAME}}|Name4}}|{{ROOTPAGENAME}}}}|{{#if:{{:{{ROOTPAGENAME}}|Name4}}|{{:{{ROOTPAGENAME}}|Name4}}|{{ROOTPAGENAME}}}}]]}}}}}}
-->{{#if:{{:{{ROOTPAGENAME}}|Image4}}|[[File:{{:{{ROOTPAGENAME}}|Image4}}|link={{#ifeq:{{SUBPAGENAME}}|Tooltip|{{BASEPAGENAME}}|{{PAGENAME}}/Tooltip}}|alt={{#if:{{:{{ROOTPAGENAME}}|Name4}}|{{Translate|{{:{{ROOTPAGENAME}}|Name4}}|ItemNames}}|{{ROOTPAGENAME}}}}|{{#if:{{:{{ROOTPAGENAME}}|Name4}}|{{Translate|{{:{{ROOTPAGENAME}}|Name4}}|ItemNames}}|{{Translate|{{ROOTPAGENAME}}|ItemNames}}}}]]}}}}}}
|}
|}
</includeonly><noinclude>{{doc}}
</includeonly><noinclude>{{doc}}


[[Category:Tooltip templates]]</noinclude>
[[Category:Tooltip templates]]</noinclude>

Revision as of 11:14, 8 October 2020