Difference between revisions of "Template:ArmorTable/row test"
Jump to navigation
Jump to search
(updated translation page detection, links and link texts for armor table) |
(update to current ArmorTable/row) |
||
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:{{: | |{{#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|{{: | | {{#vardefine:item rarity|{{:Armor data|{{{1}}}|Rarity}}}}{{#if:{{#var:item rarity}}||{{#vardefine:item rarity|Common}}}}{{c|{{#var:item rarity}}|{{Translate|{{#var:item rarity}}|Properties}}}} | ||
{{#ifeq:{{lc:{{#var:armor table type}}}}|jewelry|| | {{#ifeq:{{lc:{{#var:armor table type}}}}|jewelry|| | ||
{{!}} {{#vardefine:item protection|{{: | {{#ifeq:{{lc:{{#var:armor table type}}}}|shield|| | ||
{{!}} {{#vardefine:item protection|{{:Armor data|{{{1}}}|Protection}}}}{{#if:{{#var:item protection}}|{{#var:item protection}}|0}} | |||
}} | }} | ||
| {{: | {{!}} {{Translate|{{:Armor data|{{{1}}}|ArmorClass}}|Properties}} | ||
| | }} | ||
| | | {{:Armor data|{{{1}}}|Durability}} | ||
| {{:Armor data|{{{1}}}|Price}} | |||
| {{Test|{{{1}}}}}</includeonly><noinclude>{{doc|Template:ArmorTable}}[[Category:Templates]]</noinclude> |
Revision as of 15:15, 26 May 2023
This template has no documentation. If you know how to use this template, please add some.