Difference between revisions of "Template:Consumable test"
Jump to navigation
Jump to search
Tag: Reverted |
m Tag: Manual revert |
||
Line 23: | Line 23: | ||
|<div style="width:100%;color:white;">{{Test|{{ROOTPAGENAME}}}}<!-- | |<div style="width:100%;color:white;">{{Test|{{ROOTPAGENAME}}}}<!-- | ||
-->{{#if: {{#var:PropertyText}} | <div style="float:left;">{{#if:{{:Consumable data|{{ROOTPAGENAME}}|Properties1}}|<br>|}}{{#if: {{#titleparts: {{PAGENAME}} | 1 | 2}} | {{#ifeq: {{PAGENAME}} | {{ROOTPAGENAME}}/Tooltip | {{#var:PropertyText}} | {{Translate|{{ROOTPAGENAME}}|ConsumableDescriptions}}}} | {{#var:PropertyText}}}}</div> {{Clear}}|}}</div><!-- | -->{{#if: {{#var:PropertyText}} | <div style="float:left;">{{#if:{{:Consumable data|{{ROOTPAGENAME}}|Properties1}}|<br>|}}{{#if: {{#titleparts: {{PAGENAME}} | 1 | 2}} | {{#ifeq: {{PAGENAME}} | {{ROOTPAGENAME}}/Tooltip | {{#var:PropertyText}} | {{Translate|{{ROOTPAGENAME}}|ConsumableDescriptions}}}} | {{#var:PropertyText}}}}</div> {{Clear}}|}}</div><!-- | ||
--> | -->{{#if: {{#var:Freshness}} | {{#ifeq: {{#var:Freshness}}|0|<br><div><span style="color:white;">Does not spoil over time.</span></div>|<br><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> | }}<!-- | ||
-->{{#if: {{#var:Durability}} | <br><div style="color:#9d9a9a;">{{Translate|Durability|Properties}}: <span style="color:white;">{{#var:Durability}}/{{#var:Durability}}</span></div> | }} | -->{{#if: {{#var:Durability}} | <br><div style="color:#9d9a9a;">{{Translate|Durability|Properties}}: <span style="color:white;">{{#var:Durability}}/{{#var:Durability}}</span></div> | }} |
Revision as of 15:36, 21 June 2022
This template has no documentation. If you know how to use this template, please add some.