Difference between revisions of "Template:Armor"
Jump to navigation
Jump to search
m |
m |
||
| (9 intermediate revisions by the same user not shown) | |||
| Line 5: | Line 5: | ||
-->{{#vardefine:Datastring|{{:Armor_data|{{#var:Page}}}}}}<!-- | -->{{#vardefine:Datastring|{{:Armor_data|{{#var:Page}}}}}}<!-- | ||
--- Separate values from datastring into individual variables. --- | --- Separate values from datastring into individual variables. --- | ||
-->{{#vardefine:Tier|{{#explode: {{#var:Datastring}}|;|0}}}}<!-- | |||
-->{{#vardefine:Unobtainable|{{#explode: {{#var:Datastring}}|;|-3}}}}<!-- | -->{{#vardefine:Unobtainable|{{#explode: {{#var:Datastring}}|;|-3}}}}<!-- | ||
-->{{#vardefine:Rarity|{{#explode: {{#var:Datastring}}|;|4}}}}<!-- | -->{{#vardefine:Rarity|{{#explode: {{#var:Datastring}}|;|4}}}}<!-- | ||
-->{{#vardefine:Tags|{{#explode: {{#var:Datastring}}|;|68}}}}<!-- | |||
-->{{#vardefine:ArmorType|{{#explode: {{#var:Datastring}}|;|2}}}}<!-- | -->{{#vardefine:ArmorType|{{#explode: {{#var:Datastring}}|;|2}}}}<!-- | ||
-->{{#vardefine:Protection|{{#explode: {{#var:Datastring}}|;| | -->{{#vardefine:ArmorClass|{{#explode: {{#var:Datastring}}|;|3}}}}<!-- | ||
-->{{#vardefine:Durability|{{#explode: {{#var:Datastring}}|;| | -->{{#vardefine:Protection|{{#explode: {{#var:Datastring}}|;|9}}}}<!-- | ||
-->{{#vardefine:Durability|{{#explode: {{#var:Datastring}}|;|8}}}}<!-- | |||
-->{{#vardefine:Description|{{#explode: {{#var:Datastring}}|;|-1}}}}<!-- | -->{{#vardefine:Description|{{#explode: {{#var:Datastring}}|;|-1}}}}<!-- | ||
-->{{#vardefine:Price|{{#explode: {{#var:Datastring}}|;|6}}}}<!-- | -->{{#vardefine:Price|{{#explode: {{#var:Datastring}}|;|6}}}}<!-- | ||
| Line 20: | Line 23: | ||
-->{| width=300px; | -->{| width=300px; | ||
|style="text-align:center;"|<!-- | |style="text-align:center;"|<!-- | ||
-->{{#if:{{#var:Tier}}|Tier {{#var:Tier}}<br />}}<!-- | |||
--- Check if item is marked as not obtainable in game (manually in g.sheet) --- | --- Check if item is marked as not obtainable in game (manually in g.sheet) --- | ||
-->{{#if:{{#var:Unobtainable}}|{{Unobtainable}}<br />}}<!-- | -->{{#if:{{#var:Unobtainable}}|{{Unobtainable}}<br />}}<!-- | ||
--- Check if Tag contains Unique, overwrite Rarity for Uniques --- | |||
-->{{#ifeq:{{#var:Tags}}|unique|{{#vardefine:Rarity|Unique}}|}}<!-- | |||
--- 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 64: | ||
-->{{#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 15:41, 31 May 2025
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}}}}
| Tier 4 Venemist's Talisman unique amulet |
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? |
| Tier 4 Jousting Armor unique heavy chestpiece |
| 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. |
|
| Tier 5 Nistrian Noble Cloak common light cloak |
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. |
|
| Tier 5 Guardsman Shield unique heavy shield |
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. |
|
| Tier Data does not exist. Nonexistant Armor common |
Durability: /
|
Data does not exist. |
| Nonexistant Armor |