Template:GrowthTime: Difference between revisions
Jump to navigation
Jump to search
(add day conditional) |
(add concise param 2 option. Note: template does not currently handle translating into days > 1) |
||
Line 1: | Line 1: | ||
<includeonly><span id="nametemplate" style="font-weight: bold;" class="no-wrap" data-sort-value="{{#ifeq:{{{sortkey}}}|||{{#ifeq:{{{sortkey|true}}}|true|{{#iferror:{{#expr:{{{1|0}}}>1}}|0|{{#expr:{{{1|}}}}}}}|{{{sortkey}}}}}}}">{{#iferror:{{#expr:{{{1|0}}}>1}}|{{{1|}}}|[[File:Ingredients.png|24px|link=]] {{#switch:{{#expr: floor({{{1|}}} / 60) }} | <includeonly><span id="nametemplate" style="font-weight: bold;" class="no-wrap" data-sort-value="{{#ifeq:{{{sortkey}}}|||{{#ifeq:{{{sortkey|true}}}|true|{{#iferror:{{#expr:{{{1|0}}}>1}}|0|{{#expr:{{{1|}}}}}}}|{{{sortkey}}}}}}}">{{#iferror:{{#expr:{{{1|0}}}>1}}|{{{1|}}}|[[File:Ingredients.png|24px|link=]] {{#switch:{{#expr: floor({{{1|}}} / 60) }} | ||
|0= | |0= | ||
|1=1 hour | |1=1 {{#ifeq:{{{2|}}}|concise|h|hour}} | ||
|24=1 day | |24=1 {{#ifeq:{{{2|}}}|concise|d|day}} | ||
|#default= {{#expr: floor({{{1|}}} / 60) }} hours}} {{#switch:{{#expr: {{{1|}}} mod 60 }} | |#default= {{#expr: floor({{{1|}}} / 60) }} {{#ifeq:{{{2|}}}|concise|h|hours}}}} {{#switch:{{#expr: {{{1|}}} mod 60 }} | ||
|0= | |0= | ||
|1=1 min | |1=1 {{#ifeq:{{{2|}}}|concise|m|min}} | ||
|#default= {{#expr: {{{1|}}} mod 60 }} min}}}}</span></includeonly><noinclude> | |#default= {{#expr: {{{1|}}} mod 60 }} {{#ifeq:{{{2|}}}|concise|m|min}}}}}}</span></includeonly><noinclude> | ||
{| class='wikitable sortable' id='recipe-table' | {| class='wikitable sortable' id='recipe-table' | ||
Line 19: | Line 19: | ||
|Crop 2 | |Crop 2 | ||
|{{time|20}} | |{{time|20}} | ||
|{{time|{{#expr:20*.9}}}} | |{{time|{{#expr:20*.9}}|concise}} | ||
|- | |- | ||
|Crop | |Crop 3 | ||
|{{time|307}} | |{{time|307|concise}} | ||
|{{time|{{#expr:307*.9}}}} | |{{time|{{#expr:307*.9}}}} | ||
|- | |- | ||
Line 30: | Line 30: | ||
|- | |- | ||
|Crop 5 | |Crop 5 | ||
|{{time|1441}} | |{{time|1441|concise}} | ||
|{{time|{{#expr:1441*.9}}}} | |{{time|{{#expr:1441*.9}}}} | ||
|- | |||
|Crop 6 | |||
|{{time|2881}} | |||
|{{time|{{#expr:2881*.9}}}} | |||
|} | |} | ||
<!--{{{{FULLPAGENAME}}/doc}}--> | <!--{{{{FULLPAGENAME}}/doc}}--> | ||
[[Category:Formatting templates]]</noinclude> | [[Category:Formatting templates]]</noinclude> |
Revision as of 23:36, 1 May 2023
Name | Grow Time | Grow Time in Preferred Biome |
---|---|---|
Crop 1 | Template:Time | Template:Time |
Crop 2 | Template:Time | Template:Time |
Crop 3 | Template:Time | Template:Time |
Crop 4 | Template:Time | Template:Time |
Crop 5 | Template:Time | Template:Time |
Crop 6 | Template:Time | Template:Time |