Template:Item/Smeltable: Difference between revisions

From Vintage Story Wiki
m (Fix smelt ratio part 2)
(add output stack options.)
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
|bgcolor="#000000" colspan="2" class="TC" style="text-align:center; font-size:13.5px;"|<font color="white">'''Smeltable'''</font>
|bgcolor="#000000" colspan="2" style="text-align:center; font-size:13.5px;"|<font color="white">'''Smeltable'''</font>
|-
|-
|class="TC"|'''Smelt Point'''
|'''Smelt Point'''
|class="TC"|{{{SmeltTemp}}}°C
|{{{SmeltTemp}}}°C
|-
|-
|class="TC"|'''Smelt Duration'''
|'''Smelt Duration'''
|class="TC"|{{{SmeltDuration}}} s
|{{{SmeltDuration}}} s
|-
|-
|class="TC"|'''Smelt Ratio'''
|'''Smelt Ratio'''
|class="TC"|{{{SmeltRatio}}}
|{{{SmeltRatio|1}}}
|-
|-
|class="TC"|'''Requires Container'''
|'''Requires Container'''
|class="TC"|{{{RequiresContainer}}}
|{{#if: {{{RequiresContainer|}}}|Yes|No}}
 
{{#if: {{{Output|}}} | {{#!:
[[Category:Smeltables]]
|-
</includeonly>
|'''Output'''
 
|[[{{{Output}}}]]
<noinclude>
|-
|'''Output Amount'''
|{{{OutputAmount|1}}}
}} }}[[Category:Smeltables]]</includeonly><noinclude>
{| class="wikitable"
{| class="wikitable"
|-
|-
! Parameter Name !! Purpose !! Example Value
! Parameter !! Required or Optional, default if applicable !! Example
|-
|-
| SmeltTemp || Temp at which smelt starts ||| 100
| ''SmeltTemp'' || Required || 100
|-
|-
| SmeltDuration || Duration smelt takes ||| 10
| ''SmeltDuration'' || Required || 10
|-
|-
| SmeltRatio || Ratio of ingredients to products ||| 0.5
| ''SmeltRatio'' || Optional, 1 || 0.5
|-
|-
| RequiresContainer || Whether smelt needs a container ||| Yes
| ''RequiresContainer'' || Optional, No || Yes
|-
| ''Output'' || Optional || Torch
|-
| ''OutputAmount'' || Optional, 1 || 2
|}
|}
''Output'' automatically creates a link to the article for the output item so make sure it's not a red link. Pass any value to ''RequiresContainer'' for the value of "Yes" to appear.
</noinclude>
</noinclude>

Revision as of 16:36, 31 December 2020

Parameter Required or Optional, default if applicable Example
SmeltTemp Required 100
SmeltDuration Required 10
SmeltRatio Optional, 1 0.5
RequiresContainer Optional, No Yes
Output Optional Torch
OutputAmount Optional, 1 2

Output automatically creates a link to the article for the output item so make sure it's not a red link. Pass any value to RequiresContainer for the value of "Yes" to appear.