Difference between revisions of "Template:ArmorTable/row"
Jump to navigation
Jump to search
(updated translation page detection, links and link texts for armor table) |
(updated to load item data from Data page) Tag: Reverted |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
|- | |- | ||
|{{#if:{{:{{{1}}}|Unobtainable}}|{{Unobtainable}} | |{{#if:{{:Data|{{{1}}}|Unobtainable}}|{{Unobtainable}}<br />}}'''[[{{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}|{{{1}}}|{{{1}}}/{{SUBPAGENAME}}}}|{{#if:{{:{{{1}}}|Name}}|{{#if:{{Translate|{{:{{{1}}}|Name}}|ItemNames}}|{{Translate|{{:{{{1}}}|Name}}|ItemNames}}}}|{{#if:{{Translate|{{{1}}}|ItemNames}}|{{Translate|{{{1}}}|ItemNames}}}}}}]]'''<!-- | ||
-->{{#if:{{:{{{1}}}|Image2}}|<!-- | -->{{#if:{{:{{{1}}}|Image2}}|<!-- | ||
Line 21: | Line 21: | ||
-->|[[File:{{#if:{{:{{{1}}}|Image}}|{{:{{{1}}}|Image}}|{{{1}}}.png}}|center|alt={{#if:{{:{{{1}}}|Name}}|{{Translate|{{:{{{1}}}|Name}}|ItemNames}}|{{Translate|{{{1}}}|ItemNames}}}}|class=image2x|link={{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}|{{{1}}}|{{{1}}}/{{SUBPAGENAME}}}}]]}} | -->|[[File:{{#if:{{:{{{1}}}|Image}}|{{:{{{1}}}|Image}}|{{{1}}}.png}}|center|alt={{#if:{{:{{{1}}}|Name}}|{{Translate|{{:{{{1}}}|Name}}|ItemNames}}|{{Translate|{{{1}}}|ItemNames}}}}|class=image2x|link={{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}|{{{1}}}|{{{1}}}/{{SUBPAGENAME}}}}]]}} | ||
| {{#vardefine:item rarity|{{:{{{1}}}|Rarity}}}}{{#if:{{#var:item rarity}}||{{#vardefine:item rarity|Common}}}}{{c|{{#var:item rarity}}|{{Translate|{{#var:item rarity}}|Properties}}}} | | {{#vardefine:item rarity|{{: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|{{:{{{1}}}|Protection}}}}{{#if:{{#var:item protection}}|{{#var:item protection}}|0}} | {{!}} {{#vardefine:item protection|{{:Data|{{{1}}}|Protection}}}}{{#if:{{#var:item protection}}|{{#var:item protection}}|0}} | ||
{{!}} {{Translate|{{:{{{1}}}|ArmorClass}}|Properties}} | {{!}} {{Translate|{{:Data|{{{1}}}|ArmorClass}}|Properties}} | ||
}} | }} | ||
| {{:{{{1}}}|Durability}} | | {{:Data|{{{1}}}|Durability}} | ||
| {{:{{{1}}}|Price}} | | {{:Data|{{{1}}}|Price}} | ||
| {{Test|{{{1}}}}}</includeonly><noinclude>{{doc|Template:ArmorTable}}[[Category:Templates]]</noinclude> |
Revision as of 14:54, 27 May 2022
This template has no documentation. If you know how to use this template, please add some.