Difference between revisions of "Template:Consumable test"

From Stoneshard wiki
Jump to navigation Jump to search
Line 22: Line 22:
|-
|-
|<div style="width:100%;color:white;">{{Test|{{ROOTPAGENAME}}}}<!--
|<div style="width:100%;color:white;">{{Test|{{ROOTPAGENAME}}}}<!--
-->{{#if: {{#var:PropertyText}} | <div>{{#if: {{#titleparts: {{PAGENAME}} | 1 | 2}} | {{#ifeq: {{PAGENAME}} | {{ROOTPAGENAME}}/Tooltip | {{#var:PropertyText}} | {{Translate|{{ROOTPAGENAME}}|ConsumableDescriptions}}}} | {{#var:PropertyText}}}}</div><br>|}}</div><!--
-->{{#if: {{#var:PropertyText}} | <div>{{#if: {{#titleparts: {{PAGENAME}} | 1 | 2}} | {{#ifeq: {{PAGENAME}} | {{ROOTPAGENAME}}/Tooltip | {{#var:PropertyText}} | {{Translate|{{ROOTPAGENAME}}|ConsumableDescriptions}}}} | {{#var:PropertyText}}}}</div>{{#if: {{#var:Freshness}}|<br>}}|}}</div><!--
-->{{#if: {{#var:Freshness}} | {{#ifeq: {{#var:Freshness}}|0|<div><span style="color:white;">Does not spoil over time.</span></div>|<div style="color:#9d9a9a;">{{Translate|Will spoil in|Properties}} <span style="color:white;">{{#iferror: {{#expr: ceil({{#var:Freshness}}/24) }}|error}} {{#iferror: {{#ifexpr: {{#var:Freshness}} > 24 |days|day}}|error}}.</span></div>}}}}<!--
-->{{#if: {{#var:Freshness}} | {{#ifeq: {{#var:Freshness}}|0|<div><span style="color:white;">Does not spoil over time.</span></div>|<div style="color:#9d9a9a;">{{Translate|Will spoil in|Properties}} <span style="color:white;">{{#iferror: {{#expr: ceil({{#var:Freshness}}/24) }}|error}} {{#iferror: {{#ifexpr: {{#var:Freshness}} > 24 |days|day}}|error}}.</span></div>}}}}<!--
-->{{#if: {{#switch:{{#var:Uses}}|0|1=|{{#var:Uses}}}} | <br><div style="color:#9d9a9a;">{{Translate|Uses|Properties}}: <span style="color:white;">{{#var:Uses}}/{{#var:Uses}}</span></div> | }}<!--
-->{{#if: {{#switch:{{#var:Uses}}|0|1=|{{#var:Uses}}}} | <br><div style="color:#9d9a9a;">{{Translate|Uses|Properties}}: <span style="color:white;">{{#var:Uses}}/{{#var:Uses}}</span></div> | }}<!--

Revision as of 16:04, 21 June 2022

This template has no documentation. If you know how to use this template, please add some.