Difference between revisions of "Template:ArmorTable/row test"
Jump to navigation
Jump to search
(update to latest) |
|||
Line 3: | Line 3: | ||
-->{{#vardefine:Datastring|{{:Armor_data|{{{1}}}}}}}<!-- | -->{{#vardefine:Datastring|{{:Armor_data|{{{1}}}}}}}<!-- | ||
--- 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:ArmorClass|{{#explode: {{#var:Datastring}}|;|3}}}}<!-- | -->{{#vardefine:ArmorClass|{{#explode: {{#var:Datastring}}|;|3}}}}<!-- | ||
-->{{#vardefine:Protection|{{#explode: {{#var:Datastring}}|;| | -->{{#vardefine:Protection|{{#explode: {{#var:Datastring}}|;|9}}}}<!-- | ||
-->{{#vardefine:Durability|{{#explode: {{#var:Datastring}}|;| | -->{{#vardefine:Durability|{{#explode: {{#var:Datastring}}|;|8}}}}<!-- | ||
-->{{#vardefine:Price|{{#explode: {{#var:Datastring}}|;|6}}}}<!-- | -->{{#vardefine:Price|{{#explode: {{#var:Datastring}}|;|6}}}}<!-- | ||
-->{{#vardefine:Image|{{#explode: {{#var:Datastring}}|;|-6}}}}<!-- | -->{{#vardefine:Image|{{#explode: {{#var:Datastring}}|;|-6}}}}<!-- | ||
Line 15: | Line 16: | ||
-->{{#vardefine:TranslateName|{{Translate|{{{1}}}|ItemNames}}}} | -->{{#vardefine:TranslateName|{{Translate|{{{1}}}|ItemNames}}}} | ||
|- | |- | ||
|{{#if:{{#var:Tier}}|Tier {{#var:Tier}} | |||
|{{#if:{{#var:Unobtainable}}|{{Unobtainable}}<br />}}'''[[{{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}|{{{1}}}|{{{1}}}/{{SUBPAGENAME}}}}|{{#var:TranslateName}}]]'''<!-- | |{{#if:{{#var:Unobtainable}}|{{Unobtainable}}<br />}}'''[[{{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}|{{{1}}}|{{{1}}}/{{SUBPAGENAME}}}}|{{#var:TranslateName}}]]'''<!-- | ||
-->{{#if:{{#var:Image2}}|<!-- | -->{{#if:{{#var:Image2}}|<!-- | ||
Line 20: | Line 22: | ||
-->[[File:{{#var:Image2}}|alt={{#var:TranslateName}}|class=image2x|link={{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}|{{{1}}}|{{{1}}}/{{SUBPAGENAME}}}}|{{#var:TranslateName}}]]</div><!-- | -->[[File:{{#var:Image2}}|alt={{#var:TranslateName}}|class=image2x|link={{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}|{{{1}}}|{{{1}}}/{{SUBPAGENAME}}}}|{{#var:TranslateName}}]]</div><!-- | ||
-->{{#if:{{#var:Image3}}<!-- | -->{{#if:{{#var:Image3}}<!-- | ||
--> | -->|[[File:{{#var:Image3}}|center|alt={{#var:TranslateName}}|class=image2x|link={{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}|{{{1}}}|{{{1}}}/{{SUBPAGENAME}}}}|{{#var:TranslateName}}]]<!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->|[[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}}}}]]}} |
Latest revision as of 22:13, 16 January 2025
This template has no documentation. If you know how to use this template, please add some.