Difference between revisions of "Template:Armor test"

From Stoneshard wiki
Jump to navigation Jump to search
m
Line 1: Line 1:
<includeonly>{{#vardefine:Page|{{#if:{{{1|}}}|{{{1|}}}|{{ROOTPAGENAME}}}}}}{| width=300px;
<includeonly><!--
|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}}
--- If item name is provided as parameter, use the parameter instead of root page. ---
-->{{#vardefine:Page|{{#if:{{{1|}}}|{{{1|}}}|{{ROOTPAGENAME}}}}}}<!--
--- Load complete datastring into a variable - to only load from the Enemy data page once. ---
-->{{#vardefine:Datastring|{{:Armor_data|{{#var:Page}}}}}}<!--
--- Separate values from datastring into individual variables. ---
-->{{#vardefine:Unobtainable|{{#explode: {{#var:Datastring}}|;|-3}}}}<!--
-->{{#vardefine:Rarity|{{#explode: {{#var:Datastring}}|;|5}}}}<!--
-->{{#vardefine:ArmorType|{{#explode: {{#var:Datastring}}|;|3}}}}<!--
-->{{#vardefine:Protection|{{#explode: {{#var:Datastring}}|;|9}}}}<!--
-->{{#vardefine:Durability|{{#explode: {{#var:Datastring}}|;|8}}}}<!--
-->{{#vardefine:Description|{{#explode: {{#var:Datastring}}|;|-1}}}}<!--
-->{{#vardefine:Price|{{#explode: {{#var:Datastring}}|;|7}}}}<!--
-->{{#vardefine:Image|{{#explode: {{#var:Datastring}}|;|-6}}}}<!--
-->{{#vardefine:Image2|{{#explode: {{#var:Datastring}}|;|-5}}}}<!--
-->{{#vardefine:Image3|{{#explode: {{#var:Datastring}}|;|-4}}}}<!--
-->{| width=300px;
|style="text-align:center;"|<!--
--- Check if item is marked as not obtainable in game (manually in g.sheet) ---
-->{{#if:{{#var:Unobtainable}}|{{#var:Unobtainable}}<br />}}<!--
--- Check if item is of better rarity than common ---
-->{{#if:{{#var:Rarity}}|<span style="font-size: 20px;">{{c|{{#var:Rarity}}|{{Translate|{{#var:Page}}|ItemNames}}}}</span><br /><span style="color:#9d9a9a;">{{Translate|{{#var:Rarity}}|Properties}}|<span style="font-size: 20px;">{{Translate|{{#var:Page}}|ItemNames}}</span><br /><span style="color:#9d9a9a;">{{Translate|Common|Properties}} }} <!--
--- Load armor type (headgear, shield, etc.) ---
-->{{Translate|{{#var:ArmorType}}|Properties}}</span>{{Tooltip rule}}
|-
|-
|style="text-align:center;"|{{#if: {{:Armor data|{{#var:Page}}|Protection}} | {{:Armor data|{{#var:Page}}|Protection}} {{Translate|Protection|Properties}} {{Tooltip rule}} | }}
|style="text-align:center;"|<!--
--- Load armor protection ---
-->{{#if:{{#var:Protection}}|{{#var:Protection}} {{Translate|Protection|Properties}} {{Tooltip rule}} |}}
|-
|-
|<div style="width:100%;color:#9d9a9a;">{{Test|{{#var:Page}}}}</div>
|<div style="width:100%;color:#9d9a9a;"><!--
<div style="color:#9d9a9a;">{{Translate|Durability|Properties}}: <span style="color:white;">{{:Armor data|{{#var:Page}}|Durability}}/{{:Armor data|{{#var:Page}}|Durability}}</span></div>
--- Load and sort item properties via this template ---
-->{{Test|{{#var:Page}}}}</div><!--
--- Load armor durability ---
--><div style="color:#9d9a9a;">{{Translate|Durability|Properties}}: <span style="color:white;">{{#var:Durability}}/{{#var:Durability}}</span></div>
|-
|-
|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="color:#9d7969;text-align:justify"|<!--
--- Load description and price ---
-->{{Tooltip rule}}{{#if: {{#titleparts: {{PAGENAME}} | 1 | 2}} | {{#ifeq: {{PAGENAME}} | {{#var:Page}}/Tooltip | {{#var:Description}} | {{Translate|{{#var:Page}}|ItemDescriptions}}}} | {{#var:Description}}}}<div style="float:right;">[[File:Gold_Icon.png|18px|alt={{Translate|Price|Properties}}|link=|{{Translate|Price|Properties}}]]{{W|{{#var:Price}}}}</div><br />
|-
|-
|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}}]]<!--
|style="text-align:center;"|<!--
--- Load item images (up to 3 supported now, no item uses more than 3) ---
-->[[File:{{#if:{{#var:Image}}|{{#var:Image}}|{{#var:Page}}.png}}|class=image2x|link=|alt={{Translate|{{#var:Page}}|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:{{#var:Image2}}|[[File:{{#var:Image2}}|class=image2x|link=|alt={{Translate|{{#var:Page}}|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:{{#var:Image3}}|<br />[[File:{{#var:Image3}}|class=image2x|link=|alt={{Translate|{{#var:Page}}|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:{{: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}}
{{#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>

Revision as of 14:58, 26 May 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_test}}}}

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_test|Venemist's Talisman|category=no}}}}
Venemist's Talisman
silver Light
Unholy Resistance: +13%
 
Bonus Range: +1
 
Magic Power: +6%
 
Experience Gain: +9%
 
Vision: +1
 
Durability: 35/35

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?
Price1

Venemist's Talisman
Jousting Armor
metal Heavy
21 Protection
Physical Resistance: +33%
 
Bleed Resistance: +36%
 
Block Chance: +5%
Block Power: +5
Dodge Chance: -17%
Crit Avoidance: +18%
Damage Taken: -5%
 
Energy: -18
Energy Restoration: -5%
 
Durability: 360/360

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

Jousting Armor
Nistrian Noble Cloak
cloth Light
Physical Resistance: +9%
Nature Resistance: +9%
 
Bleed Resistance: +9%
 
Crit Avoidance: +9%
Damage Taken: -3%
 
Durability: 40/40

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.
Price1.15

Nistrian Noble Cloak
Guardsman Shield
wood Heavy
Move Resistance: +20%
Control Resistance: +5%
 
Block Chance: +44%
Block Power: +44
Block Power Recovery: -13%
Counter Chance: +5%
Dodge Chance: -16%
Crit Avoidance: +8%
 
Energy: -16
Energy Restoration: -3%
 
Fortitude: +10%
 
Durability: 350/350

After the Royal Guard was disbanded, many former guardsmen decided to try their luck as mercenaries. Rather predictably, they took all their equipment with them, these shields included.
Price1

Guardsman Shield
Mahir's Garment
cloth Light
2 Protection
Physical Resistance: +4%
 
Bleed Resistance: +2%
 
Energy: +2
Energy Restoration: +1%
 
Experience Gain: +5%
 
Fatigue Resistance: +5%
 
Durability: 40/40

A manner of robe that is typically the sole possession of wandering dervishes such as Mahir. It offers reliable protection from both the scorching sun of Jacinth as well as the bone-chilling cold of its desert nights.
Price1

Mahir's Garment
Nonexistant Armor
Common
Durability: /

Data does not exist.
Price

Nonexistant Armor

[[Category: ]]