Template:Sidebar/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{Doc/subpage}} This is a metatemplate used to aid in the creation of sidebar templates. == Copy and Paste == {{CodeBlock|<nowiki>{{Sidebar | image = | imageformat =...")
 
mNo edit summary
Line 56: Line 56:
| File extension for the sidebar image
| File extension for the sidebar image
| {{CodeBlock|margin=5px|<nowiki>| imageformat = jpg</nowiki>}}
| {{CodeBlock|margin=5px|<nowiki>| imageformat = jpg</nowiki>}}
|-
! colspan=4 | Style parameters
|-
| {{param|float}}
| For specifying how or if the sidebar will float
| {{CodeBlock|margin=5px|<nowiki>| float = left</nowiki>}}
|-
|-
|}</div>
|}</div>

Revision as of 00:26, 29 May 2023

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

This is a metatemplate used to aid in the creation of sidebar templates.

Copy and Paste

{{Sidebar | image = | imageformat = | title = | header = | content = | footer = }}

Usage & Preview

{{{header}}}
{{{footer}}}
{{Sidebar}}
Parameter Description Example
{{{title}}} Sidebar title
| title = Lorem ipsum
{{{header}}} Header content
| header = Foo bar
{{{content}}} Main content
| content = Example
{{{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
{{{imageformat}}} File extension for the sidebar image
| imageformat = jpg
Style parameters
{{{float}}} For specifying how or if the sidebar will float
| float = left