Difference between revisions of "Template:ArmorTable/row"
Jump to navigation
Jump to search
old>Realpsojed (added check for NewProp param and added Test template = new properties system. If NewProp exists, it will ignore old properties system and look for new properties system.) |
old>Realpsojed (now loads properties (Rarity, Protection, etc.) from the Data page) |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
|- | |- | ||
|{{#if:{{:{{{1}}}|Unobtainable}}|{{Unobtainable}} | |{{#if:{{:Data|{{{1}}}|Unobtainable}}|{{Unobtainable}}<br />}}'''[[{{{1}}}|{{#if:{{:{{{1}}}|Name}}|{{Translate|{{:{{{1}}}|Name}}|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}} | ||
| {{#if: {{:{{{1}}}|NewProp}}|{{Test|{{{1}}}}}|{{Properties|{{{1}}}}}}}</includeonly><noinclude>{{doc|Template:ArmorTable}}[[Category:Templates]]</noinclude> | | {{#if: {{:{{{1}}}|NewProp}}|{{Test|{{{1}}}}}|{{Properties|{{{1}}}}}}}</includeonly><noinclude>{{doc|Template:ArmorTable}}[[Category:Templates]]</noinclude> |
Revision as of 11:03, 22 September 2021
This template has no documentation. If you know how to use this template, please add some.