Template:Sidebar/doc: Difference between revisions
Jump to navigation
Jump to search
Mailmanmicky (talk | contribs) m (→Copy and Paste) |
Mailmanmicky (talk | contribs) mNo edit summary |
||
Line 37: | Line 37: | ||
| {{CodeBlock|margin=5px|<nowiki>| header = Foo bar </nowiki>}} | | {{CodeBlock|margin=5px|<nowiki>| header = Foo bar </nowiki>}} | ||
|- | |- | ||
| {{param|section <1- | | {{param|section <1-10>}} | ||
| Main content section dividers | | Main content section dividers | ||
| {{CodeBlock|margin=5px|<nowiki>| section1 = Test </nowiki>}} | | {{CodeBlock|margin=5px|<nowiki>| section1 = Test </nowiki>}} | ||
|- | |- | ||
| {{param|content <1- | | {{param|content <1-10>}} | ||
| Main content | | Main content | ||
| {{CodeBlock|margin=5px|<nowiki>| content1 = Example </nowiki>}} | | {{CodeBlock|margin=5px|<nowiki>| content1 = Example </nowiki>}} | ||
Line 69: | Line 69: | ||
| {{CodeBlock|margin=5px|<nowiki>| headerstyle = font-family:sans-serif; </nowiki>}} | | {{CodeBlock|margin=5px|<nowiki>| headerstyle = font-family:sans-serif; </nowiki>}} | ||
|- | |- | ||
| {{param|section <1- | | {{param|section <1-10> 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- | | {{param|content <1-10> style}} | ||
| Content styling | | Content styling | ||
| {{CodeBlock|margin=5px|<nowiki>| contentstyle1 = background:gray; </nowiki>}} | | {{CodeBlock|margin=5px|<nowiki>| contentstyle1 = background:gray; </nowiki>}} |
Revision as of 19:27, 31 May 2023

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.
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}}.
Testcases
Testcases for this template can be located on the testcases subpage.
Copy and Paste
Usage & Preview
Parameter | Description | Example | |
---|---|---|---|
{{{header}}} | Header content | ||
{{{section <1-10>}}} | Main content section dividers | ||
{{{content <1-10>}}} | Main content | ||
{{{footer}}} | Footer content | ||
{{{width}}} | Width of the sidebar container and sidebar image | ||
Image parameters | |||
{{{image}}} | Sidebar image | ||
{{{imagewidth}}} | Sidebar image width | ||
Style parameters | |||
{{{headerstyle}}} | Header styling | ||
{{{section <1-10> style}}} | Section styling | ||
{{{content <1-10> style}}} | Content styling | ||
{{{footerstyle}}} | Footer styling | ||
{{{float}}} | For specifying how or if the sidebar will float |