Template:Sidebar/Documentation: Difference between revisions

Template page
w:c:strategywiki>Prod
(cats belong on their page)
w:c:strategywiki>Prod
m (→‎Example: sidebar on the side)
Line 9: Line 9:


==Example==
==Example==
<pre>{{sidebar
{{sidebar
|float=left
|float=right
|width=250px
|width=250px
|title=Sidebar Example
|title=Sidebar Example
|contents=You can put whatever you want here.  This is sort of like using really large parenthesis.
|contents=You can put whatever you want here.  This is sort of like using really large parenthesis.
}}</pre>
}}
;The above displays the box shown below:
<pre>{{sidebar
{{sidebar
|float=right
|float=left
|width=250px
|width=250px
|title=Sidebar Example
|title=Sidebar Example
|contents=You can put whatever you want here.  This is sort of like using really large parenthesis.
|contents=You can put whatever you want here.  This is sort of like using really large parenthesis.
}}
}}</pre>

Revision as of 23:34, 23 February 2008

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)
|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 parenthesis.
}}