Template:Sidebar/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 76: Line 76:
| {{CodeBlock|margin=5px|<nowiki>| headerstyle = font-family:sans-serif; </nowiki>}}
| {{CodeBlock|margin=5px|<nowiki>| headerstyle = font-family:sans-serif; </nowiki>}}
|-
|-
| {{param|section <1-10> style}}
| {{param|section <1-20> style}}
| Section styling
| Section styling
| {{CodeBlock|margin=5px|<nowiki>| sectionstyle1 = text-rendering:optimizeSpeed; </nowiki>}}
| {{CodeBlock|margin=5px|<nowiki>| sectionstyle1 = text-rendering:optimizeSpeed; </nowiki>}}
|-
|-
| {{param|content <1-10> style}}
| {{param|content <1-20> style}}
| Content styling
| Content styling
| {{CodeBlock|margin=5px|<nowiki>| contentstyle1 = background:gray; </nowiki>}}
| {{CodeBlock|margin=5px|<nowiki>| contentstyle1 = background:gray; </nowiki>}}

Revision as of 06:54, 2 June 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.

Sub-metatemplates

This template has 1 sub-metatemplate called {{infobox}}.

Grand-metatemplates

This template has 1 grand-metatemplate called {{infobox template}}.

Testcases

Testcases for this template can be located on the testcases subpage.

Copy and Paste

{{Sidebar | image = | title = | header = | section1 = | content1 = | footer = }}

Usage & Preview

{{{header}}}
Software Cover - The Lab.jpg
{{{section}}}
{{{content}}}
{{{footer}}}
{{Sidebar}}
Parameter Description Example
{{{header}}} Header content
| header = Foo bar
{{{section <1-10>}}} Main content section dividers
| section1 = Test
{{{content <1-10>}}} Main content
| content1 = 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
{{{imagewidth}}} Sidebar image width
| imagewidth = 64px
{{{imagelink}}} Sidebar image link
| imagelink = Portal 2
Style parameters
{{{headerstyle}}} Header styling
| headerstyle = font-family:sans-serif;
{{{section <1-20> style}}} Section styling
| sectionstyle1 = text-rendering:optimizeSpeed;
{{{content <1-20> style}}} Content styling
| contentstyle1 = background:gray;
{{{footerstyle}}} Footer styling
| footerstyle = text-align:right;
{{{float}}} For specifying how or if the sidebar will float
| float = left