Template:Sidebar/Documentation: Difference between revisions

Template page
w:c:strategywiki>DrBob
(Added class parameter)
w:c:strategywiki>NajBot
m (category fix)
Line 37: Line 37:
|contents=This is using the "banner" ''class''.
|contents=This is using the "banner" ''class''.
}}</pre>
}}</pre>
<noinclude>[[Category:Template documentation|S]]</noinclude>

Revision as of 19:24, 17 April 2009

Documentation for {{Sidebar}}.
This template is used to provide additional information in a sidenote style. It is used as follows:

{{sidebar
|float=left, right, or none (default: right)
|class=Variant class (e.g. "banner"; default: empty)
|width=Box width (CSS syntax)
|title=Box title
|contents=Box contents
}}

Example

Page Template:Sidebar/styles.css has no content.

Sidebar example
You can put whatever you want here. This is sort of like using really large parenthesis.
{{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.
}}

Page Template:Sidebar/styles.css has no content.

Banner class example
This is using the "banner" class.
{{sidebar
|float=right
|class=banner
|width=250px
|title=Banner class example
|contents=This is using the "banner" ''class''.
}}