Difference between revisions of "Template:ArmorTable/row test"
Jump to navigation
Jump to search
(update to current ArmorTable/row) |
|||
Line 1: | Line 1: | ||
<includeonly><!-- | <includeonly><!-- | ||
--- | --- Load complete datastring into a variable - to only load from the Enemy data page once. --- | ||
-->{{#vardefine: | -->{{#vardefine:Datastring|{{:Armor_data|{{{1}}}}}}}<!-- | ||
-->{{#vardefine: | --- Separate values from datastring into individual variables. --- | ||
-->{{#vardefine: | -->{{#vardefine:Unobtainable|{{#explode: {{#var:Datastring}}|;|-3}}}}<!-- | ||
-->{{#vardefine: | -->{{#vardefine:Rarity|{{#explode: {{#var:Datastring}}|;|4}}}}<!-- | ||
-->{{#vardefine:Image|{{: | -->{{#vardefine:ArmorType|{{#explode: {{#var:Datastring}}|;|2}}}}<!-- | ||
-->{{#vardefine:Image2|{{: | -->{{#vardefine:Protection|{{#explode: {{#var:Datastring}}|;|8}}}}<!-- | ||
-->{{#vardefine:Image3|{{: | -->{{#vardefine:Durability|{{#explode: {{#var:Datastring}}|;|7}}}}<!-- | ||
-->{{#vardefine: | -->{{#vardefine:Price|{{#explode: {{#var:Datastring}}|;|6}}}}<!-- | ||
-->{{#vardefine:Image|{{#explode: {{#var:Datastring}}|;|-6}}}}<!-- | |||
-->{{#vardefine:Image2|{{#explode: {{#var:Datastring}}|;|-5}}}}<!-- | |||
-->{{#vardefine:Image3|{{#explode: {{#var:Datastring}}|;|-4}}}}<!-- | |||
--- Load translations that are used multiple times into variables. --- | |||
-->{{#vardefine:TranslateName|{{Translate|{{{1}}}|ItemNames}}}} | |||
|- | |- | ||
|{{#if:{{: | |{{#if:{{#var:Unobtainable}}|{{Unobtainable}}<br />}}'''[[{{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}|{{{1}}}|{{{1}}}/{{SUBPAGENAME}}}}|{{#var:TranslateName}}]]'''<!-- | ||
-->{{#if:{{#var:Image2}}|<!-- | -->{{#if:{{#var:Image2}}|<!-- | ||
--><div style="margin:0 auto 0 auto">[[File:{{#if:{{#var:Image}}|{{#var:Image}}|{{{1}}}.png}}|alt={{#var:TranslateName}}|class=image2x|link={{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}|{{{1}}}|{{{1}}}/{{SUBPAGENAME}}}}|{{#var:TranslateName}}]]<!-- | |||
--><div style="margin:0 auto 0 auto">[[File:{{#if:{{#var:Image}}|{{#var:Image}}|{{{1}}}.png}}|alt= | -->[[File:{{#var:Image2}}|alt={{#var:TranslateName}}|class=image2x|link={{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}|{{{1}}}|{{{1}}}/{{SUBPAGENAME}}}}|{{#var:TranslateName}}]]</div><!-- | ||
-->[[File:{{#var:Image2}}|alt= | |||
-->{{#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}}}}]]}} | |||
|{{#if:{{#var:Rarity}}||{{#vardefine:Rarity|Common}}}}{{c|{{#var:Rarity}}|{{Translate|{{#var:Rarity}}|Properties}}}} | |||
| {{#vardefine: | |||
{{#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|| | ||
{{! | {{!}} {{#if:{{#var:Protection}}|{{#var:Protection}}|0}} | ||
}} | }} | ||
{{!}} {{Translate|{{: | {{!}} {{Translate|{{#var:ArmorType}}|Properties}} | ||
}} | }} | ||
| {{: | | {{#var:Durability}} | ||
| {{: | | {{#var:Price}} | ||
| {{Test|{{{1}}}}}</includeonly><noinclude>{{doc|Template:ArmorTable}}[[Category:Templates]]</noinclude> | | {{Test|{{{1}}}}}</includeonly><noinclude>{{doc|Template:ArmorTable}}[[Category:Templates]]</noinclude> |
Revision as of 15:50, 26 May 2023
This template has no documentation. If you know how to use this template, please add some.