Template:Sidebar/doc: Difference between revisions
Jump to navigation
Jump to search
Mailmanmicky (talk | contribs) mNo edit summary |
Mailmanmicky (talk | contribs) mNo edit summary |
||
Line 7: | Line 7: | ||
== Copy and Paste == | == Copy and Paste == | ||
{{CodeBlock|<nowiki>{{Sidebar | {{CodeBlock|<nowiki>{{Sidebar | ||
| image | | image = | ||
| title | | title = | ||
| | | header1 = | ||
| | | content2 = | ||
| footer | | footer = | ||
}}</nowiki>}} | }}</nowiki>}} | ||
== Usage & Preview == | == Usage & Preview == | ||
{{Sidebar | {{Sidebar | ||
| image | | image = Software Cover - The Lab | ||
| title = {{param|title}} | |||
| title | | header1 = {{param|header}} | ||
| | | content1 = {{param|content}} | ||
| | | footer = {{param|footer}} | ||
| footer | |||
}} | }} | ||
{{CodeBlock|<nowiki>{{Sidebar}}</nowiki>}} | {{CodeBlock|<nowiki>{{Sidebar}}</nowiki>}} | ||
Line 34: | Line 33: | ||
| {{CodeBlock|margin=5px|<nowiki>| title = Lorem ipsum </nowiki>}} | | {{CodeBlock|margin=5px|<nowiki>| title = Lorem ipsum </nowiki>}} | ||
|- | |- | ||
| {{param|header}} | | {{param|header <1-2>}} | ||
| Header content | | Header content | ||
| {{CodeBlock|margin=5px|<nowiki>| header = Foo bar </nowiki>}} | | {{CodeBlock|margin=5px|<nowiki>| header = Foo bar </nowiki>}} | ||
|- | |- | ||
| {{param|content}} | | {{param|content <1-2>}} | ||
| Main content | | Main content | ||
| {{CodeBlock|margin=5px|<nowiki>| content = Example </nowiki>}} | | {{CodeBlock|margin=5px|<nowiki>| content = Example </nowiki>}} |
Revision as of 03:50, 29 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.
Testcases
Testcases for this template can be located on the testcases subpage.
Copy and Paste
Usage & Preview
Parameter | Description | Example | |
---|---|---|---|
{{{title}}} | Sidebar title | ||
{{{header <1-2>}}} | Header content | ||
{{{content <1-2>}}} | Main content | ||
{{{footer}}} | Footer content | ||
{{{width}}} | Width of the sidebar container and sidebar image | ||
Image parameters | |||
{{{image}}} | Sidebar image | ||
{{{imageformat}}} | File extension for the sidebar image | ||
{{{imagewidth}}} | Sidebar image width | ||
Style parameters | |||
{{{float}}} | For specifying how or if the sidebar will float |