Template:Infobox/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 15: Line 15:
| image          = Software Cover - The Lab
| image          = Software Cover - The Lab
| title          = {{param|title}}
| title          = {{param|title}}
| header        = {{param|header}}
| section1      = {{param|section}}
| section1      = {{param|section}}
| entryid1      = {{param|entryid1}}
| entryid1      = {{param|entryid1}}
Line 32: Line 33:
| Infobox title
| Infobox title
| {{CodeBlock|margin=5px|<nowiki>| title = Lorem ipsum </nowiki>}}
| {{CodeBlock|margin=5px|<nowiki>| title = Lorem ipsum </nowiki>}}
|-
| {{param|header}}
| Header content
| {{CodeBlock|margin=5px|<nowiki>| header = Foo bar </nowiki>}}
|-
|-
| {{param|section <1-2>}}
| {{param|section <1-2>}}

Revision as of 04:46, 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 | image = | section1 = | entryid1 = | entryinfo1 = | footer = }}

Usage & Preview

{{{header}}}
{{{section}}}
{{{entryid1}}}
{{{entryinfo1}}}
{{{entryid2}}}
{{{entryinfo2}}}
{{{footer}}}
{{Infobox}}
Parameter Description Example
{{{title}}} Infobox title
| title = Lorem ipsum
{{{header}}} Header content
| header = Foo bar
{{{section <1-2>}}} Main content section dividers
| section1 = Test
{{{entryid <1-2>}}} Entry idboxes
| entryid = Example
{{{entryinfo <1-2>}}} Entry infoboxes
| entryinfo = Placeholder
{{{width}}} Width of the sidebar container and sidebar image
| width = 320px
Image parameters
{{{image}}} Sidebar image
| image = Software Cover - The Lab
{{{imageformat}}} File extension for the sidebar image
| imageformat = jpg
{{{imagewidth}}} Sidebar image width
| imagewidth = 64px
Style parameters
{{{float}}} For specifying how or if the sidebar will float
| float = left