Difference between revisions of "Template:ArmorTable/row"

From Stoneshard wiki
Jump to navigation Jump to search
(add shield class back to shields)
Line 32: Line 32:
| {{#vardefine:item rarity|{{:Armor data|{{{1}}}|Rarity}}}}{{#if:{{#var:item rarity}}||{{#vardefine:item rarity|Common}}}}{{c|{{#var:item rarity}}|{{Translate|{{#var:item rarity}}|Properties}}}}
| {{#vardefine:item rarity|{{:Armor data|{{{1}}}|Rarity}}}}{{#if:{{#var:item rarity}}||{{#vardefine:item rarity|Common}}}}{{c|{{#var:item rarity}}|{{Translate|{{#var:item rarity}}|Properties}}}}
{{#ifeq:{{lc:{{#var:armor table type}}}}|jewelry||
{{#ifeq:{{lc:{{#var:armor table type}}}}|jewelry||
{{#ifeq:{{lc:{{#var:armor table type}}}}|shield||
{{!}} {{#vardefine:item protection|{{:Armor data|{{{1}}}|Protection}}}}{{#if:{{#var:item protection}}|{{#var:item protection}}|0}}
{{!}} {{#vardefine:item protection|{{:Armor data|{{{1}}}|Protection}}}}{{#if:{{#var:item protection}}|{{#var:item protection}}|0}}
{{!}} {{Translate|{{:Armor data|{{{1}}}|ArmorClass}}|Properties}}
}}
}}
{{#ifeq:{{lc:{{#var:armor table type}}}}|shield||
{{!}} {{Translate|{{:Armor data|{{{1}}}|ArmorClass}}|Properties}}
{{!}} {{Translate|{{:Armor data|{{{1}}}|ArmorClass}}|Properties}}
}}
}}

Revision as of 16:00, 13 September 2022

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