Difference between revisions of "Template:Item"

From Vintage Story Wiki
Jump to: navigation, search
m (Example)
m (Fixed {{{SmeltRatio}}})
(One intermediate revision by the same user 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:right;"
+
<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}};"
 
|-
 
|-
 
|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 19: Line 19:
 
|SmeltTemp={{{SmeltTemp}}}
 
|SmeltTemp={{{SmeltTemp}}}
 
|SmeltDuration={{{SmeltDuration}}}
 
|SmeltDuration={{{SmeltDuration}}}
|SmeltRatio={{{SmeltRatio}}}
+
|SmeltRatio={{{SmeltRatio|}}}
 
|RequiresContainer={{{RequiresContainer}}}
 
|RequiresContainer={{{RequiresContainer}}}
 
}}
 
}}
Line 40: Line 40:
 
|-
 
|-
 
|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|}}}||{{-}} }}
 
[[Category:Items]]
 
[[Category:Items]]
</includeonly><noinclude>
+
</includeonly>
 +
 
 +
<noinclude>
 
'''Example:'''
 
'''Example:'''
 
{{Item
 
{{Item
Line 65: Line 67:
 
}}
 
}}
  
All parameters except <code>{{{Name}}}</code>,<code>{{{Image}}}</code>, and <code>{{{Stackable}}}</code> are optional.
+
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>.
 
[[Category:Infoboxes]]
 
[[Category:Infoboxes]]
 
</noinclude>
 
</noinclude>

Revision as of 18:49, 30 November 2019


Example:

{{{Name}}}
{{{Image}}}
Stackable {{{Stackable}}}
Fuel
Temperature {{{Temp}}}°C
Duration {{{Duration}}} s
Smeltable
Smelt Point {{{SmeltTemp}}}°C
Smelt Duration {{{SmeltDuration}}} s
Smelt Ratio {{{SmeltRatio}}}
Requires Container {{{RequiresContainer}}}
Food
Satiety {{{Satiety}}}
Category {{{Category}}}
Transitionable
Fresh Time {{{FreshTime}}} hrs
Transition Time {{{TransitionTime}}} hrs
Transition Ratio {{{TransitionRatio}}}
Items



All parameters except {{{Name}}},{{{Image}}}, and {{{Stackable}}} are optional. Also, positioning can be achieved with {{{FloatLeft}}}, and {{{NoBreak}}}.