Difference between revisions of "Template:ArmorTable/row"

From Stoneshard wiki
Jump to navigation Jump to search
(add Tier)
(overwrite item rarity to Unique based on its Tag)
 
Line 6: Line 6:
-->{{#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:ArmorClass|{{#explode: {{#var:Datastring}}|;|3}}}}<!--
-->{{#vardefine:ArmorClass|{{#explode: {{#var:Datastring}}|;|3}}}}<!--
-->{{#vardefine:Protection|{{#explode: {{#var:Datastring}}|;|9}}}}<!--
-->{{#vardefine:Protection|{{#explode: {{#var:Datastring}}|;|9}}}}<!--
Line 26: Line 27:
-->|[[File:{{#if:{{#var:Image}}|{{#var:Image}}|{{{1}}}.png}}|center|alt={{#var:TranslateName}}|class=image2x|link={{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}|{{{1}}}|{{{1}}}/{{SUBPAGENAME}}}}]]}}
-->|[[File:{{#if:{{#var:Image}}|{{#var:Image}}|{{{1}}}.png}}|center|alt={{#var:TranslateName}}|class=image2x|link={{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}|{{{1}}}|{{{1}}}/{{SUBPAGENAME}}}}]]}}


|{{#if:{{#var:Rarity}}||{{#vardefine:Rarity|Common}}}}{{c|{{#var:Rarity}}|{{Translate|{{#var:Rarity}}|Properties}}}}
|<!--
--- Check if Tag contains Unique, overwrite Rarity for Uniques ---
-->{{#ifeq:{{#var:Tags}}|unique|{{#vardefine:Rarity|Unique}}|}}<!--
-->{{#if:{{#var:Rarity}}||{{#vardefine:Rarity|Common}}}}{{c|{{#var:Rarity}}|{{Translate|{{#var:Rarity}}|Properties}}}}
{{#ifeq:{{lc:{{#var:armor table type}}}}|jewelry||
{{#ifeq:{{lc:{{#var:armor table type}}}}|jewelry||
{{#ifeq:{{lc:{{#var:armor table type}}}}|shield||
{{#ifeq:{{lc:{{#var:armor table type}}}}|shield||

Latest revision as of 15:47, 31 May 2025

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