Difference between revisions of "Template:Consumable test"
Jump to navigation
Jump to search
m Tag: Manual revert |
|||
Line 19: | Line 19: | ||
--><span style="color:#9d9a9a;">{{Translate|{{:Consumable data|{{ROOTPAGENAME}}|ItemType}}|Properties}}</span><!-- | --><span style="color:#9d9a9a;">{{Translate|{{:Consumable data|{{ROOTPAGENAME}}|ItemType}}|Properties}}</span><!-- | ||
--- Check if item has no Properties at all, if yes, then don't add a horizontal rule, otherwise add it. --- | --- Check if item has no Properties at all, if yes, then don't add a horizontal rule, otherwise add it. --- | ||
-->{{#if: {{:Consumable data|{{ROOTPAGENAME}}|NoProperties}}|{{Tooltip rule}} }} | -->{{#if: {{:Consumable data|{{ROOTPAGENAME}}|NoProperties}}||{{Tooltip rule}}}} | ||
|- | |- | ||
|<div style="width:100%;color:white;">{{Test|{{ROOTPAGENAME}}}}<!-- | |<div style="width:100%;color:white;">{{Test|{{ROOTPAGENAME}}}}<!-- | ||
-->{{#if: {{#var:PropertyText}} | <div style="float:left;"> | -->{{#if: {{#var:PropertyText}} | <div style="float:left;">{{#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: {{#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> | }}<!-- |
Revision as of 15:58, 21 June 2022
This template has no documentation. If you know how to use this template, please add some.