Template:Sidebar
From Valve Developer Community
Revision as of 22:00, 28 May 2023 by Mailmanmicky (talk | contribs) (Created page with "<onlyinclude><includeonly><!-- --><div style="clear:both; float:right; min-width:{{{width|300px;}}} margin-inline:10px;"><!-- -->{{#if:{{{title|}}}|<h3 style="text-align:cen...")
Todo: documentation
This template uses a Testcases subpage
You can test how this page looks with its different skins and parsers.
You can test how this page looks with its different skins and parsers.
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
{{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 | |
[[File:{{{header}}}|300px]]
{{{header}}}
{{{footer}}}
The above documentation is transcluded from Template:Sidebar/doc. (Edit | Page history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (edit) pages.
Editors can experiment in this template's sandbox (create | mirror) and testcases (edit) pages.
Hidden categories: