Difference between revisions of "Template:Armor"

From Stoneshard wiki
Jump to navigation Jump to search
m
(only show Armor Class on select armor types: Head, Chest, Feet, Hands, Cloak, Shield)
 
(3 intermediate revisions by the same user not shown)
Line 8: Line 8:
-->{{#vardefine:Rarity|{{#explode: {{#var:Datastring}}|;|4}}}}<!--
-->{{#vardefine:Rarity|{{#explode: {{#var:Datastring}}|;|4}}}}<!--
-->{{#vardefine:ArmorType|{{#explode: {{#var:Datastring}}|;|2}}}}<!--
-->{{#vardefine:ArmorType|{{#explode: {{#var:Datastring}}|;|2}}}}<!--
-->{{#vardefine:ArmorClass|{{#explode: {{#var:Datastring}}|;|3}}}}<!--
-->{{#vardefine:Protection|{{#explode: {{#var:Datastring}}|;|8}}}}<!--
-->{{#vardefine:Protection|{{#explode: {{#var:Datastring}}|;|8}}}}<!--
-->{{#vardefine:Durability|{{#explode: {{#var:Datastring}}|;|7}}}}<!--
-->{{#vardefine:Durability|{{#explode: {{#var:Datastring}}|;|7}}}}<!--
Line 23: Line 24:
-->{{#if:{{#var:Unobtainable}}|{{Unobtainable}}<br />}}<!--
-->{{#if:{{#var:Unobtainable}}|{{Unobtainable}}<br />}}<!--
--- Check if item is of better rarity than common ---
--- Check if item is of better rarity than common ---
-->{{#if:{{#var:Rarity}}|<span style="font-size: 20px;">{{c|{{#var:Rarity}}|{{#var:TranslateName}}}}</span><br /><span style="color:#9d9a9a;">{{Translate|{{#var:Rarity}}|Properties}}|<span style="font-size: 20px;">{{#var:TranslateName}}</span><br /><span style="color:#9d9a9a;">{{Translate|Common|Properties}} }} <!--
-->{{#if:{{#var:Rarity}}|<span style="font-size: 20px;">{{c|{{#var:Rarity}}|{{#var:TranslateName}}}}</span><br /><span style="color:#9d9a9a;">{{lc:{{Translate|{{#var:Rarity}}|Properties}}}}|<span style="font-size: 20px;">{{#var:TranslateName}}</span><br /><span style="color:#9d9a9a;">{{lc:{{Translate|Common|Properties}}}} }} <!--
--- Load armor class (light, medium, heavy), only show on select armor pieces ---
-->{{#if:{{#var:ArmorType}}|{{#switch: {{#var:ArmorType}}
|Headgear
|Chestpiece
|Gloves
|Boots
|Cloak
|Shield = {{lc:{{Translate|{{#var:ArmorClass}}|Properties}}}}
|#default = }}}} <!--
--- Load armor type (headgear, shield, etc.) ---
--- Load armor type (headgear, shield, etc.) ---
-->{{Translate|{{#var:ArmorType}}|Properties}}</span>{{Tooltip rule}}
-->{{lc:{{Translate|{{#var:ArmorType}}|Properties}}}}</span>{{Tooltip rule}}
|-
|-
|style="text-align:center;"|<!--
|style="text-align:center;"|<!--
Line 49: Line 59:
-->{{#if:{{#var:Image3}}|<br />[[File:{{#var:Image3}}|class=image2x|link=|alt={{#var:TranslateName}}|{{#var:TranslateName}}]]}}}}
-->{{#if:{{#var:Image3}}|<br />[[File:{{#var:Image3}}|class=image2x|link=|alt={{#var:TranslateName}}|{{#var:TranslateName}}]]}}}}
|}
|}
{{#if: {{#titleparts: {{PAGENAME}} | 1 | 2}} | {{#ifeq: {{PAGENAME}} | {{#var:Page}}/Tooltip |[[Category:{{#var:ArmorType}} Tooltips]]|{{#if: {{#titleparts: {{PAGENAME}} | 1 | 3}}|[[Category: {{uc:{{#titleparts: {{PAGENAME}} | 1 | 2}}}} {{#var:ArmorType}} Tooltips]]|[[Category: {{uc:{{#titleparts: {{PAGENAME}} | 1 | 2}}}} {{#var:ArmorType}}]]}}}}|[[Category: {{#var:ArmorType}}]]}}</includeonly><noinclude>{{doc}}
{{#if: {{{category|}}} ||{{#if: {{#titleparts: {{PAGENAME}} | 1 | 2}} | {{#ifeq: {{PAGENAME}} | {{#var:Page}}/Tooltip |[[Category:{{#var:ArmorType}} Tooltips]]|{{#if: {{#titleparts: {{PAGENAME}} | 1 | 3}}|[[Category: {{uc:{{#titleparts: {{PAGENAME}} | 1 | 2}}}} {{#var:ArmorType}} Tooltips]]|[[Category: {{uc:{{#titleparts: {{PAGENAME}} | 1 | 2}}}} {{#var:ArmorType}}]]}}}}|[[Category: {{#var:ArmorType}}]]}}}}</includeonly><noinclude>{{doc}}
[[Category:Tooltip templates]]</noinclude>
[[Category:Tooltip templates]]</noinclude>

Latest revision as of 11:19, 11 December 2023

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}}}}
Venemist's Talisman
unique amulet
Skills Energy Cost: -9%
Spells Energy Cost: -9%
Cooldowns Duration: -9%
 
Experience Gain: +20%
 
Durability: 66/66

It's set with an incredibly large morion that seems to be shifting its color every now and then... Or is it merely a trick of the light?
Price1800

Venemist's Talisman
Jousting Armor
unique heavy chestpiece
22 Protection
Physical Resistance: +33%
 
Slashing Resistance: +5%
 
Shock Resistance: -20%
 
Bleed Resistance: +25%
Move Resistance: +10%
Pain Resistance: +15%
 
Dodge Chance: -20%
Damage Taken: -5%
 
Energy: -24
Energy Restoration: -7%
 
Durability: 450/450

Some of its combat effectiveness was stripped away in favor of imposing aesthetics. And yet it's hard to deny, this armor makes quite an impression.
Price5280

Jousting Armor
Nistrian Noble Cloak
common light cloak
Physical Resistance: +5%
 
Move Resistance: +10%
Control Resistance: +10%
 
Block Chance: +5%
Block Power Recovery: +5%
Dodge Chance: +3%
 
Fortitude: +10%
 
Durability: 150/150

Nistra is a fascinating land of many intertwined cultures. Nistrian nobles, who still stay true to the ancient traditions of Axonia, also eagerly embrace the customs of Pjesht highlanders - such as a preference for this style of cloak, for example.
Price1800

Nistrian Noble Cloak
Guardsman Shield
unique heavy shield
Move Resistance: +40%
 
Block Chance: +36%
Block Power: +40
Block Power Recovery: -15%
Dodge Chance: -25%
Damage Taken: -10%
Damage Reflection: +5%
 
Energy: -22
Energy Restoration: -7%
 
Fortitude: +15%
 
Durability: 520/520

After the Royal Guard was disbanded, many former guardsmen decided to try their luck as mercenaries. Obviously, they brought their equipment along with them, including these shields.
Price4500

Guardsman Shield