Difference between revisions of "Template:ConsumableTable/row"
Jump to navigation
Jump to search
old>Realpsojed (add check for zero in freshness data value, replacing the zero with "9999" - to sort items that never spoil above the long duration ones.) |
m |
||
| (14 intermediate revisions by 3 users not shown) | |||
| Line 22: | Line 22: | ||
| {{#if:{{:{{{1}}}|InventoryWidth}}|{{slots|{{:{{{1}}}|InventoryWidth}}|{{:{{{1}}}|InventoryHeight}}}}}} | | {{#if:{{:{{{1}}}|InventoryWidth}}|{{slots|{{:{{{1}}}|InventoryWidth}}|{{:{{{1}}}|InventoryHeight}}}}}} | ||
| {{:{{{1}}}|Price}} | | {{:{{{1}}}|Price}}<!-- | ||
{{#if:{{#var:consumable table subcat}}| | -->{{#if:{{#var:consumable table subcat}}| | ||
{{!}} {{:{{{1}}}|Subcategory}} | {{!}}{{!}} {{:{{{1}}}|Subcategory}} | ||
}} | }}<!-- | ||
| {{Properties|{{{1}}}}}{{#if:{{:{{{1}}}|PropertyText}}|{{:{{{1}}}|PropertyText}}< | -->{{#if:{{#var:consumable table ingredients}}| | ||
{{!}}{{!}} {{:{{{1}}}|Ingredients}} | |||
|data-sort-value="{{#ifeq: {{:{{{1}}}|Freshness}}|0|9999|{{:{{{1}}}|Freshness}}}}" | }}<!-- | ||
| {{:{{{1}}}|Description}}<!-- | -->{{#if:{{#var:consumable table properties}}| | ||
{{!}}{{!}} {{Properties|{{{1}}}}}{{#if:{{:{{{1}}}|PropertyText}}|{{:{{{1}}}|PropertyText}}}} | |||
}}<!-- | |||
-->{{#if:{{#var:consumable table uses}}| | |||
{{!}}{{!}} {{#switch:{{:{{{1}}}|Uses}}|0=-|=1|{{:{{{1}}}|Uses}}}} | |||
}}<!-- | |||
-->{{#if:{{#var:consumable table freshness}}| | |||
{{!}}{{!}} {{#if:{{:{{{1}}}|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}}}}<!-- | |||
-->}}<!-- | |||
-->{{#if:{{#var:consumable table description}}| | |||
{{!}}{{!}} {{:{{{1}}}|Description}} | |||
}}<!-- | |||
-->{{#if:{{#var:consumable table notes}}| | -->{{#if:{{#var:consumable table notes}}| | ||
{{!}} {{:{{{1}}}|Notes}} | {{!}}{{!}} {{:{{{1}}}|Notes}} | ||
}}</includeonly><noinclude>{{doc|Template:ArmorTable}}[[Category:Templates]]</noinclude> | }}</includeonly><noinclude>{{doc|Template:ArmorTable}}[[Category:Templates]]</noinclude> | ||
Latest revision as of 16:50, 3 September 2025
This template has no documentation. If you know how to use this template, please add some.