Difference between revisions of "Template:ArmorTable/row"

From Stoneshard wiki
Jump to navigation Jump to search
m (fix for datastring with multiple images)
 
(One intermediate revision by the same user not shown)
Line 9: Line 9:
-->{{#vardefine:Durability|{{#explode: {{#var:Datastring}}|;|7}}}}<!--
-->{{#vardefine:Durability|{{#explode: {{#var:Datastring}}|;|7}}}}<!--
-->{{#vardefine:Price|{{#explode: {{#var:Datastring}}|;|6}}}}<!--
-->{{#vardefine:Price|{{#explode: {{#var:Datastring}}|;|6}}}}<!--
-->{{#vardefine:Image|{{#explode: {{#var:Datastring}}|;|-7}}}}<!--
-->{{#vardefine:Image|{{#explode: {{#var:Datastring}}|;|-6}}}}<!--
-->{{#vardefine:Image2|{{#explode: {{#var:Datastring}}|;|-6}}}}<!--
-->{{#vardefine:Image2|{{#explode: {{#var:Datastring}}|;|-5}}}}<!--
-->{{#vardefine:Image3|{{#explode: {{#var:Datastring}}|;|-5}}}}<!--
-->{{#vardefine:Image3|{{#explode: {{#var:Datastring}}|;|-4}}}}<!--
--- Load translations that are used multiple times into variables. ---
--- Load translations that are used multiple times into variables. ---
-->{{#vardefine:TranslateName|{{Translate|{{{1}}}|ItemNames}}}}
-->{{#vardefine:TranslateName|{{Translate|{{{1}}}|ItemNames}}}}
Line 20: Line 20:
-->[[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:{{#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:08, 19 June 2023

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