Template:Infobox/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 45: Line 45:
| Entry infoboxes
| Entry infoboxes
| {{CodeBlock|margin=5px|<nowiki>| entryinfo2 = Placeholder </nowiki>}}
| {{CodeBlock|margin=5px|<nowiki>| entryinfo2 = Placeholder </nowiki>}}
|-
| {{param|footer}}
| Footer content
| {{CodeBlock|margin=5px|<nowiki>| footer = Placeholder </nowiki>}}
|-
|-
| {{param|width}}
| {{param|width}}

Revision as of 20:43, 29 May 2023

Edit-copy.png
This is a documentation subpage for Template:Infobox.
Don't forget to purge the contents of the base page upon creating or editing this subpage.

This is a sub-metatemplate of {{sidebar}} that is designed to help create infobox templates.

Copy and Paste

{{Infobox | header = | image = | section1 = | entryid1 = | entryinfo1 = | footer = }}

Usage & Preview

{{{header}}}
Software Cover - The Lab.jpg
{{{section1}}}
{{{entryid1}}}
{{{entryinfo1}}}
{{{entryid2}}}
{{{entryinfo2}}}
{{{footer}}}
{{Infobox}}
Parameter Description Example
{{{header}}} Header content
| header = Foo bar
{{{section <1-2>}}} Main content section dividers
| section1 = Test
{{{entryid <1-2>}}} Entry idboxes
| entryid1 = Example
{{{entryinfo <1-2>}}} Entry infoboxes
| entryinfo2 = Placeholder
{{{footer}}} Footer content
| footer = Placeholder
{{{width}}} Width of the sidebar container and sidebar image
| width = 320px
Image parameters
{{{image}}} Sidebar image
| image = Software Cover - The Lab
{{{imagewidth}}} Sidebar image width
| imagewidth = 64px
Style parameters
{{{entryid <1-2> style}}} Entry idbox styling
| entryid1style = background:none;
{{{entryinfo <1-2> style}}} Entry infobox styling
| entryinfo1style = margin:.3em;
{{{float}}} For specifying how or if the sidebar will float
| float = left