Difference between revisions of "Template:ConsumableTable/row"

From Stoneshard wiki
Jump to navigation Jump to search
old>Phoe nixx
m (no nbsp after property text)
(removing the infinity sign, possible fix for error 500 on Food page)
 
(2 intermediate revisions by 2 users not shown)
Line 28: Line 28:
| {{Properties|{{{1}}}}}{{#if:{{:{{{1}}}|PropertyText}}|{{:{{{1}}}|PropertyText}}}}
| {{Properties|{{{1}}}}}{{#if:{{:{{{1}}}|PropertyText}}|{{:{{{1}}}|PropertyText}}}}
| {{#switch:{{:{{{1}}}|Uses}}|0=-|=1|{{:{{{1}}}|Uses}}}}
| {{#switch:{{:{{{1}}}|Uses}}|0=-|=1|{{:{{{1}}}|Uses}}}}
|data-sort-value="{{#ifeq: {{:{{{1}}}|Freshness}}|0|9999|{{:{{{1}}}|Freshness}}}}"| {{#if:{{:{{{1}}}|Freshness}}|{{#switch: {{#expr: ceil({{:{{{1}}}|Freshness}}/24) }}|0=|1=1 day|#default={{#expr: ceil({{:{{{1}}}|Freshness}}/24)}} days}}}}
{{#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}}}}
}}
| {{:{{{1}}}|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 12:07, 13 May 2022

This template has no documentation. If you know how to use this template, please add some.