Difference between revisions of "Template:Consumable test"
Jump to navigation
Jump to search
(Created page with "<includeonly><!-- --- Define variables for properties used more than once in the template - goal is to only load each property from the Data page once. --- -->{{#vardefine:Name|{{:Consumable_data|{{ROOTPAGENAME}}|Name}}}}<!-- -->{{#vardefine:PropertyText|{{:Consumable_data|{{ROOTPAGENAME}}|PropertyText}}}}<!-- -->{{#vardefine:Freshness|{{:Consumable_data|{{ROOTPAGENAME}}|Freshness}}}}<!-- -->{{#vardefine:Uses|{{:Consumable_data|{{ROOTPAGENAME}}|Uses}}}}<!-- -->{{#vardefi...") |
m |
||
Line 21: | Line 21: | ||
-->{{#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:{{: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: {{#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>}}}}<!-- |
Revision as of 15:30, 21 June 2022
This template has no documentation. If you know how to use this template, please add some.