Difference between revisions of "Template:Consumable test"
Jump to navigation
Jump to search
Line 23: | Line 23: | ||
|<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>{{#if: {{#var:Freshness}}|<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>{{#if: {{#var:Uses}}|<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}}}} | | -->{{#if: {{#switch:{{#var:Uses}}|0|1=|{{#var:Uses}}}} |<div style="color:#9d9a9a;">{{Translate|Uses|Properties}}: <span style="color:white;">{{#var:Uses}}/{{#var:Uses}}</span></div>{{#if: {{#var:Durability}}|<br>}}| }}<!-- | ||
-->{{#if: {{#var:Durability}} | | -->{{#if: {{#var:Durability}} |<div style="color:#9d9a9a;">{{Translate|Durability|Properties}}: <span style="color:white;">{{#var:Durability}}/{{#var:Durability}}</span></div> | }} | ||
|- | |- | ||
|style="color:#9d7969;"|{{Tooltip rule}}{{#if: {{#titleparts: {{PAGENAME}} | 1 | 2}} | {{#ifeq: {{PAGENAME}} | {{ROOTPAGENAME}}/Tooltip | {{#var:Description}} | {{Translate|{{ROOTPAGENAME}}|ConsumableDescriptions}}}} | {{#var:Description}}}}{{#if:{{#var:Price}}|<div style="float:right">[[File:Gold_Icon.png|18px|alt={{Translate|Price|Properties}}|link=|{{Translate|Price|Properties}}]]{{W|{{#var:Price}}}}</div>}} <br /> | |style="color:#9d7969;"|{{Tooltip rule}}{{#if: {{#titleparts: {{PAGENAME}} | 1 | 2}} | {{#ifeq: {{PAGENAME}} | {{ROOTPAGENAME}}/Tooltip | {{#var:Description}} | {{Translate|{{ROOTPAGENAME}}|ConsumableDescriptions}}}} | {{#var:Description}}}}{{#if:{{#var:Price}}|<div style="float:right">[[File:Gold_Icon.png|18px|alt={{Translate|Price|Properties}}|link=|{{Translate|Price|Properties}}]]{{W|{{#var:Price}}}}</div>}} <br /> |
Revision as of 16:13, 21 June 2022
This template has no documentation. If you know how to use this template, please add some.