Jump to navigation
Jump to search
This page has been transcluded from Template:Sidebar/Documentation.
This template is used to provide additional information in a sidenote style. It is used as follows:
{{sidebar |float=left, right, or center (default: right) |clear=left, right, or both (default: empty) |styles=Guide-specific variant classes. (ex. eternal-sonata; default: empty) |class=Variant class (ex. "banner"; default: empty) |width=Box width (CSS syntax) |title=Box title |contents=Box contents }}
Example
{{sidebar |float=right |width=250px |title=Sidebar example |contents=You can put whatever you want here. This is sort of like using really large parentheses. }}
{{sidebar |float=right |class=banner |width=250px |title=Banner class example |contents=This is using the "banner" ''class''. }}
Used to create a sidebar next to the main text.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Float | float | On which side of the page the sidebar should appear.
| String | suggested |
Clear | clear | no description
| String | optional |
Styles | styles | Any guide-specific CSS classes to apply to the sidebar box. | String | optional |
Class | class | The name of a CSS class that modifies the display of the sidebar. | String | optional |
Width | width | The width of the sidebar, using CSS syntax. | String | optional |
Title | title | Text to display at the top of the sidebar box.
| String | required |
Contents | contents | The content to display within the sidebar. | Content | required |