Template:Item: Difference between revisions

From Vintage Story Wiki
added {{{FloatLeft}}} and {{{NoBreak}}} parameters and docs
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>
Confirmedusers, Bureaucrats, editor, Administrators
1,522

edits