Difference between revisions of "Template:ConsumableTable/row"
Jump to navigation
Jump to search
(add ingredients param) |
(added parameter for properties and uses) |
||
| Line 29: | Line 29: | ||
{{!}} {{:{{{1}}}|Ingredients}} | {{!}} {{:{{{1}}}|Ingredients}} | ||
}} | }} | ||
{{#if:{{#var:consumable table properties}}| | |||
| {{Properties|{{{1}}}}}{{#if:{{:{{{1}}}|PropertyText}}|{{:{{{1}}}|PropertyText}}}} | | {{Properties|{{{1}}}}}{{#if:{{:{{{1}}}|PropertyText}}|{{:{{{1}}}|PropertyText}}}} | ||
}} | |||
{{#if:{{#var:consumable table uses}}| | |||
| {{#switch:{{:{{{1}}}|Uses}}|0=-|=1|{{:{{{1}}}|Uses}}}} | | {{#switch:{{:{{{1}}}|Uses}}|0=-|=1|{{:{{{1}}}|Uses}}}} | ||
}} | |||
{{#if:{{#var:consumable table freshness}}| | {{#if:{{#var:consumable table freshness}}| | ||
{{!}}data-sort-value="{{#ifeq: {{:{{{1}}}|Freshness}}|0|9999|{{:{{{1}}}|Freshness}}}}"{{!}}{{#if:{{:{{{1}}}|Freshness}}|{{#switch: {{#expr: ceil({{:{{{1}}}|Freshness}}/24) }}|0=inf|1=1 day|#default={{#expr: ceil({{:{{{1}}}|Freshness}}/24)}} days}}}} | {{!}}data-sort-value="{{#ifeq: {{:{{{1}}}|Freshness}}|0|9999|{{:{{{1}}}|Freshness}}}}"{{!}}{{#if:{{:{{{1}}}|Freshness}}|{{#switch: {{#expr: ceil({{:{{{1}}}|Freshness}}/24) }}|0=inf|1=1 day|#default={{#expr: ceil({{:{{{1}}}|Freshness}}/24)}} days}}}} | ||
Revision as of 22:24, 23 August 2025
This template has no documentation. If you know how to use this template, please add some.