Template:Item: Difference between revisions

From Vintage Story Wiki
m (Example)
(added {{{FloatLeft}}} and {{{NoBreak}}} parameters and docs)
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 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 17:42, 30 November 2019


Example:

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

{{{Category}}}

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



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