Difference between revisions of "Template:Armor"

From Stoneshard wiki
Jump to navigation Jump to search
old>Realpsojed
(image2x class)
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.)
Line 4: Line 4:
|style="text-align:center;"|{{#if: {{:{{ROOTPAGENAME}}|Protection}} | {{:{{ROOTPAGENAME}}|Protection}} {{Translate|Protection|Properties}} {{Tooltip rule}} | }}
|style="text-align:center;"|{{#if: {{:{{ROOTPAGENAME}}|Protection}} | {{:{{ROOTPAGENAME}}|Protection}} {{Translate|Protection|Properties}} {{Tooltip rule}} | }}
|-
|-
|<div style="width:100%;float: left;color:#9d9a9a;">{{Properties|{{ROOTPAGENAME}}}}</div>
|<div style="width:100%;float: left;color:#9d9a9a;">{{#if: {{:{{ROOTPAGENAME}}|NewProp}}|{{Test|{{ROOTPAGENAME}}}}|{{Properties|{{ROOTPAGENAME}}}}}}</div>
<div style="clear: both;color:#9d9a9a;">{{Translate|Durability|Properties}}: <span style="color:white;">{{:{{ROOTPAGENAME}}|Durability}}/{{:{{ROOTPAGENAME}}|Durability}}</span></div>
<div style="clear: both;color:#9d9a9a;">{{Translate|Durability|Properties}}: <span style="color:white;">{{:{{ROOTPAGENAME}}|Durability}}/{{:{{ROOTPAGENAME}}|Durability}}</span></div>
|-
|-

Revision as of 13:20, 22 May 2021