Template:Item: Difference between revisions

From Vintage Story Wiki
m (margin but right this time)
(added standard parameter table)
Line 1: Line 1:
<includeonly>{|border="1" cellpadding="2" cellspacing="0" style="position:relative; border-radius:7px; font-size:90%; width:200px; float:{{#if:{{{FloatLeft|}}}|left|right}}; margin:{{#if:{{{Margin|}}}|1em|0}};"
<includeonly>{|border="1" cellpadding="2" cellspacing="0" style="position:relative; border-radius:7px; font-size:90%; width:250px; float:right; margin-left:5px; margin-bottom: 5px;"
|-
|-
|bgcolor="#000000" colspan="2" class="TC" style="border-top-right-radius:7px; border-top-left-radius:7px; text-align:center; font-size:13.5px;"|<font color="white">'''{{{Name}}}'''</font>
|bgcolor="#000000" colspan="2" class="TC" style="border-top-right-radius:7px; border-top-left-radius:7px; text-align:center; font-size:13.5px;"|<font color="white">'''{{{Name}}}'''</font>
Line 6: Line 6:
|-
|-
|class="TC"|'''Stackable'''
|class="TC"|'''Stackable'''
|class="TC"|{{{Stackable}}}
|class="TC"|{{{Stackable|64}}}
|-
|-
{{#if: {{{Temp|}}} | {{#!:
{{#if: {{{Temp|}}} | {{#!:
Line 19: Line 19:
|SmeltTemp={{{SmeltTemp}}}
|SmeltTemp={{{SmeltTemp}}}
|SmeltDuration={{{SmeltDuration}}}
|SmeltDuration={{{SmeltDuration}}}
|SmeltRatio={{{SmeltRatio|1}}}
|SmeltRatio={{{SmeltRatio|}}}
|RequiresContainer={{#if: {{{RequiresContainer|}}}|Yes|No}}
|RequiresContainer={{{RequiresContainer|}}}
}}
}}
}} }}
}} }}
Line 35: Line 35:
|FreshTime={{{FreshTime}}}
|FreshTime={{{FreshTime}}}
|TransitionTime={{{TransitionTime}}}
|TransitionTime={{{TransitionTime}}}
|TransitionRatio={{{TransitionRatio}}}
|TransitionRatio={{{TransitionRatio|}}}
}}
}}
}} }}
}} }}
Line 56: Line 56:
|SmeltTemp={{{SmeltTemp}}}
|SmeltTemp={{{SmeltTemp}}}
|SmeltDuration={{{SmeltDuration}}}
|SmeltDuration={{{SmeltDuration}}}
|SmeltRatio={{{SmeltRatio}}}
|SmeltRatio={{{SmeltRatio|}}}
|RequiresContainer={{{RequiresContainer}}}
|RequiresContainer={{{RequiresContainer|}}}


|FreshTime={{{FreshTime}}}
|FreshTime={{{FreshTime}}}
|TransitionTime={{{TransitionTime}}}
|TransitionTime={{{TransitionTime}}}
|TransitionRatio={{{TransitionRatio}}}
|TransitionRatio={{{TransitionRatio|}}}


|Satiety={{{Satiety}}}
|Satiety={{{Satiety}}}
Line 67: Line 67:
|NoBreak=y
|NoBreak=y
}}
}}
All parameters except <code>{{{Name}}}</code>,<code>{{{Image}}}</code>, and <code>{{{Stackable}}}</code> are optional. Also, positioning can be achieved with <code>{{{FloatLeft}}}</code>, <code>{{{NoBreak}}}</code>, and <code>{{{Margin}}}</code>.
 
{| class="wikitable"
|-
! Parameter !! Required or Optional, default if applicable !! Example
|-
| ''Name'' || Required || Dirt
|-
| ''Image'' || Required || File:Grid Dirt.png
|-
| ''Stackable'' || Optional, 64 || 32
|-
| ''Temp'' || Optional || 1000
|-
| ''Duration'' || Required with ''Temp'' || 30
|-
| ''SmeltTemp'' || Optional || 1000
|-
| ''SmeltDuration'' || Required with ''SmeltTemp'' || 30
|-
| ''SmeltRatio'' || Optional, 1 || 0.5
|-
| ''RequiresContainer'' || Optional, Yes || Yes
|-
| ''FreshTime'' || Optional || 480
|-
| ''TransitionTime'' || Required with ''FreshTime'' || 48
|-
| ''TransitionRatio'' || Optional, 1 || 0.75
|-
| ''Satiety'' || Optional || 200
|-
| ''Category'' || Required with ''Satiety'' || Protien
|}


Utilizes: [[:Template:Item/Food]], [[:Template:Item/Fuel]], [[:Template:Item/Smeltable]], [[:Template:Item/Transitionable]]
Utilizes: [[:Template:Item/Food]], [[:Template:Item/Fuel]], [[:Template:Item/Smeltable]], [[:Template:Item/Transitionable]]
[[Category:Infoboxes]]
[[Category:Infoboxes]]
</noinclude>
</noinclude>

Revision as of 15:19, 11 April 2020


Example:

{{{Name}}}
[[{{{Image}}}|100px]]
Stackable {{{Stackable}}}
Fuel
Temperature {{{Temp}}}°C
Duration {{{Duration}}} s
Smeltable
Smelt Point {{{SmeltTemp}}}°C
Requires Container No
Food
Satiety {{{Satiety}}}
Category

{{{Category}}}

Transitionable
Fresh Time {{{FreshTime}}}
Transition Time {{{TransitionTime}}}
Transition Ratio
Items


Parameter Required or Optional, default if applicable Example
Name Required Dirt
Image Required File:Grid Dirt.png
Stackable Optional, 64 32
Temp Optional 1000
Duration Required with Temp 30
SmeltTemp Optional 1000
SmeltDuration Required with SmeltTemp 30
SmeltRatio Optional, 1 0.5
RequiresContainer Optional, Yes Yes
FreshTime Optional 480
TransitionTime Required with FreshTime 48
TransitionRatio Optional, 1 0.75
Satiety Optional 200
Category Required with Satiety Protien

Utilizes: Template:Item/Food, Template:Item/Fuel, Template:Item/Smeltable, Template:Item/Transitionable