Template:Item: Difference between revisions

From Vintage Story Wiki
m
move row break to inside conditional and remove unneeded classes
m (what it uses)
m (move row break to inside conditional and remove unneeded classes)
(17 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{|border="1" cellpadding="2" cellspacing="0" class="screwTemplatesMan" style="position:relative; border-radius:7px; font-size:90%; width:200px; float:{{#if:{{{FloatLeft|}}}|left|right}};"
<includeonly>{|border="1" cellpadding="2" cellspacing="0" style="position:relative; border-radius:7px; font-size:90%; width:190px; 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" style="border-top-right-radius:7px; border-top-left-radius:7px; text-align:center; font-size:13.5px;"|<font color="white">'''{{{Name}}}'''</font>
|-
|-
|bgcolor="#d3ab92" colspan=2 style="text-align: center"| {{{Image}}}
|bgcolor="#d3ab92" colspan=2 style="text-align: center"| [[{{{Image}}}|100px]]
|-
|-
|class="TC"|'''Stackable'''
|'''Stackable'''
|class="TC"|{{{Stackable}}}
|{{{Stackable|64}}}
{{#if: {{{Temp|}}} | {{#!:
|-
|-
{{#if: {{{Temp|}}} | {{#!:
{{Item/Fuel
{{Item/Fuel
|Temp={{{Temp}}}
|Temp={{{Temp}}}
Line 14: Line 14:
}}
}}
}} }}
}} }}
{{#if: {{{SmeltTemp|}}} | {{#!:
|-
|-
{{#if: {{{SmeltTemp|}}} | {{#!:
{{Item/Smeltable
{{Item/Smeltable
|SmeltTemp={{{SmeltTemp}}}
|SmeltTemp={{{SmeltTemp}}}
|SmeltDuration={{{SmeltDuration}}}
|SmeltDuration={{{SmeltDuration}}}
|SmeltRatio={{{SmeltRatio|1}}}
|SmeltRatio={{{SmeltRatio|}}}
|RequiresContainer={{{RequiresContainer}}}
|RequiresContainer={{{RequiresContainer|}}}
|Output={{{Output|}}}
|OutputAmount={{{OutputAmount|1}}}
}}
}}
}} }}
}} }}
{{#if: {{{Satiety|}}} | {{#!:
|-
|-
{{#if: {{{Satiety|}}} | {{#!:
{{Item/Food
{{Item/Food
|Satiety={{{Satiety}}}
|Satiety={{{Satiety}}}
Line 30: Line 32:
}}
}}
}} }}
}} }}
{{#if: {{{FreshTime|}}} | {{#!:
|-
|-
{{#if: {{{FreshTime|}}} | {{#!:
{{Item/Transitionable
{{Item/Transitionable
|FreshTime={{{FreshTime}}}
|FreshTime={{{FreshTime}}}
|TransitionTime={{{TransitionTime}}}
|TransitionTime={{{TransitionTime}}}
|TransitionRatio={{{TransitionRatio}}}
|TransitionRatio={{{TransitionRatio|}}}
}}
}}
}} }}
}} }}
Line 41: Line 43:
|bgcolor="#000000" colspan="2" class="Bloba" style="text-align:center; font-size:13.5px; border-bottom-right-radius:7px; border-bottom-left-radius:7px;"|[[Items|<font color="white">'''Items'''</font>]]
|bgcolor="#000000" colspan="2" class="Bloba" style="text-align:center; font-size:13.5px; border-bottom-right-radius:7px; border-bottom-left-radius:7px;"|[[Items|<font color="white">'''Items'''</font>]]
|}{{#if:{{{NoBreak|}}}||{{-}} }}
|}{{#if:{{{NoBreak|}}}||{{-}} }}
[[Category:Items]]
[[Category:Items]]</includeonly><noinclude>
</includeonly>
 
<noinclude>
'''Example:'''
'''Example:'''
{{Item
{{Item
Line 58: Line 57:
|SmeltRatio={{{SmeltRatio}}}
|SmeltRatio={{{SmeltRatio}}}
|RequiresContainer={{{RequiresContainer}}}
|RequiresContainer={{{RequiresContainer}}}
|Output={{{Output}}}


|FreshTime={{{FreshTime}}}
|FreshTime={{{FreshTime}}}
Line 65: Line 66:
|Satiety={{{Satiety}}}
|Satiety={{{Satiety}}}
|Category={{{Category}}}
|Category={{{Category}}}
|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>, and <code>{{{NoBreak}}}</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
|-
| ''Output'' || Optional || Torch
|-
| ''OutputAmount'' || Optional, 1 || 2
|-
| ''FreshTime'' || Optional || 480
|-
| ''TransitionTime'' || Required with ''FreshTime'' || 48
|-
| ''TransitionRatio'' || Optional, 1 || 0.75
|-
| ''Satiety'' || Optional || 200
|-
| ''Category'' || Required with ''Satiety'' || Protein
|}


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>
Confirmedusers, Bureaucrats, editor, Administrators
1,522

edits