Difference between revisions of "Template:ConsumableTable/row"
Jump to navigation
Jump to search
(added parameter for properties and uses) |
m |
||
| (8 intermediate revisions by the same user 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}} | ||
}} | }}<!-- | ||
{{#if:{{#var:consumable table ingredients}}| | -->{{#if:{{#var:consumable table ingredients}}| | ||
{{!}} {{:{{{1}}}|Ingredients}} | {{!}}{{!}} {{:{{{1}}}|Ingredients}} | ||
}} | }}<!-- | ||
{{#if:{{#var:consumable table properties}}| | -->{{#if:{{#var:consumable table properties}}| | ||
{{!}}{{!}} {{Properties|{{{1}}}}}{{#if:{{:{{{1}}}|PropertyText}}|{{:{{{1}}}|PropertyText}}}} | |||
}} | }}<!-- | ||
{{#if:{{#var:consumable table uses}}| | -->{{#if:{{#var:consumable table 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}}}} | {{!}}{{!}} {{#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}}}}<!-- | ||
}} | -->}}<!-- | ||
| {{:{{{1}}}|Description}}<!-- | -->{{#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.