Difference between revisions of "Template:ArmorTable/row"
Jump to navigation
Jump to search
(switch to Armor data page) |
(update loading extra names and images from data page instead of item page) |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly><!-- | ||
--- Define variables for properties used more than once in the template - goal is to only load each property from the Data page once. --- | |||
-->{{#vardefine:Name|{{:Armor_data|{{{1}}}|Name}}}}<!-- | |||
-->{{#vardefine:Name2|{{:Armor_data|{{{1}}}|Name2}}}}<!-- | |||
-->{{#vardefine:Name3|{{:Armor_data|{{{1}}}|Name3}}}}<!-- | |||
-->{{#vardefine:Name4|{{:Armor_data|{{{1}}}|Name4}}}}<!-- | |||
-->{{#vardefine:Image|{{:Armor_data|{{{1}}}|Image}}}}<!-- | |||
-->{{#vardefine:Image2|{{:Armor_data|{{{1}}}|Image2}}}}<!-- | |||
-->{{#vardefine:Image3|{{:Armor_data|{{{1}}}|Image3}}}}<!-- | |||
-->{{#vardefine:Image4|{{:Armor_data|{{{1}}}|Image4}}}}<!-- | |||
|- | |- | ||
|{{#if:{{:Armor data|{{{1}}}|Unobtainable}}|{{Unobtainable}}<br />}}'''[[{{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}|{{{1}}}|{{{1}}}/{{SUBPAGENAME}}}}|{{#if:{{: | |{{#if:{{:Armor data|{{{1}}}|Unobtainable}}|{{Unobtainable}}<br />}}'''[[{{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}|{{{1}}}|{{{1}}}/{{SUBPAGENAME}}}}|{{#if:{{#var:Name}}|{{#if:{{Translate|{{#var:Name}}|ItemNames}}|{{Translate|{{#var:Name}}|ItemNames}}}}|{{#if:{{Translate|{{{1}}}|ItemNames}}|{{Translate|{{{1}}}|ItemNames}}}}}}]]'''<!-- | ||
-->{{#if:{{: | -->{{#if:{{#var:Image2}}|<!-- | ||
--><div style="margin:0 auto 0 auto">[[File:{{#if:{{: | --><div style="margin:0 auto 0 auto">[[File:{{#if:{{#var:Image}}|{{#var:Image}}|{{{1}}}.png}}|alt={{#if:{{#var:Name}}|{{Translate|{{#var:Name}}|ItemNames}}|{{Translate|{{{1}}}|ItemNames}}}}|class=image2x|link={{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}|{{{1}}}|{{{1}}}/{{SUBPAGENAME}}}}|{{#if:{{#var:Name}}|{{Translate|{{#var:Name}}|ItemNames}}|{{Translate|{{{1}}}|ItemNames}}}}]]<!-- | ||
-->[[File:{{: | -->[[File:{{#var:Image2}}|alt={{#if:{{#var:Name2}}|{{Translate|{{#var:Name2}}|ItemNames}}|{{#if:{{#var:Name}}|{{Translate|{{#var:Name}}|Name}}|ItemNames}}|{{Translate|{{{1}}}|ItemNames}}}}}}|class=image2x|link={{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}|{{{1}}}|{{{1}}}/{{SUBPAGENAME}}}}|{{#if:{{#var:Name2}}|{{Translate|{{#var:Name2}}|ItemNames}}|{{#if:{{#var:Name}}|{{#var:Name}}|{{Translate|{{{1}}}|ItemNames}}}}}}]]</div><!-- | ||
-->{{#if:{{: | -->{{#if:{{#var:Image3}}<!-- | ||
-->|{{#if:{{: | -->|{{#if:{{#var:Image4}}<!-- | ||
-->|<div style="margin:0 auto 0 auto">[[File:{{: | -->|<div style="margin:0 auto 0 auto">[[File:{{#var:Image3}}|alt={{#if:{{#var:Name3}}|{{Translate|{{#var:Name3}}|ItemNames}}|{{#if:{{#var:Name}}|{{Translate|{{#var:Name}}|ItemNames}}|{{Translate|{{{1}}}|ItemNames}}}}}}|class=image2x|link={{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}|{{{1}}}|{{{1}}}/{{SUBPAGENAME}}}}|{{#if:{{#var:Name3}}|{{Translate|{{#var:Name3}}|ItemNames}}|{{#if:{{#var:Name}}|{{Translate|{{#var:Name}}|ItemNames}}|{{Translate|{{{1}}}|ItemNames}}}}}}]]<!-- | ||
-->[[File:{{: | -->[[File:{{#var:Image4}}|alt={{#if:{{#var:Name4}}|{{Translate|{{#var:Name4}}|ItemNames}}|{{#if:{{#var:Name}}|{{Translate|{{#var:Name}}|ItemNames}}|{{Translate|{{{1}}}|ItemNames}}}}}}|class=image2x|link={{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}|{{{1}}}|{{{1}}}/{{SUBPAGENAME}}}}|{{#if:{{#var:Name4}}|{{Translate|{{#var:Name4}}|ItemNames}}|{{#if:{{#var:Name}}|{{Translate|{{#var:Name}}|ItemNames}}|{{Translate|{{{1}}}|ItemNames}}}}}}]]</div><!-- | ||
-->|[[File:{{: | -->|[[File:{{#var:Image3}}|center|alt={{#if:{{#var:Name}}|{{Translate|{{#var:Name}}|ItemNames}}|{{Translate|{{{1}}}|ItemNames}}}}|class=image2x|link={{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}|{{{1}}}|{{{1}}}/{{SUBPAGENAME}}}}]]<!-- | ||
-->}}}}<!-- | -->}}}}<!-- | ||
-->|[[File:{{#if:{{: | -->|[[File:{{#if:{{#var:Image}}|{{#var:Image}}|{{{1}}}.png}}|center|alt={{#if:{{#var:Name}}|{{Translate|{{#var:Name}}|ItemNames}}|{{Translate|{{{1}}}|ItemNames}}}}|class=image2x|link={{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}|{{{1}}}|{{{1}}}/{{SUBPAGENAME}}}}]]}} | ||
| {{#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}}}} |
Revision as of 20:44, 22 August 2022
This template has no documentation. If you know how to use this template, please add some.