Difference between revisions of "Template:ConsumableTable/row"
Jump to navigation
Jump to search
Tag: Undo |
m (fix freshness for beverages with undefined Freshness) |
||
| Line 36: | Line 36: | ||
}}<!-- | }}<!-- | ||
-->{{#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="{{#if:{{:{{{1}}}|Freshness}}|{{#ifeq: {{:{{{1}}}|Freshness}}|0|9999|{{:{{{1}}}|Freshness}}}}|0}}"{{!}}{{#if:{{:{{{1}}}|Freshness}}|{{#switch: {{#expr: ceil({{:{{{1}}}|Freshness}}/24) }}|0=inf|1=1 day|#default={{#expr: ceil({{:{{{1}}}|Freshness}}/24)}} days}}}} | ||
}}<!-- | }}<!-- | ||
-->{{#if:{{#var:consumable table description}}| | -->{{#if:{{#var:consumable table description}}| | ||
Revision as of 16:38, 3 September 2025
This template has no documentation. If you know how to use this template, please add some.