Template:Sidebar: Difference between revisions

Template page
w:c:strategywiki>Notmyhandle
(added Template)
w:c:strategywiki>DrBob
m (Cleanup)
Line 1: Line 1:
<includeonly><div style="float:{{{float|right}}};margin:0px 10px 10px 10px;padding:3px;width:{{{width}}}">{{#if:{{{title|}}}|<div class="t_sidebar_title" style="text-align:center;font-size:larger;">'''{{{title}}}'''</div>}}{{{contents}}}</div></includeonly>
<includeonly><div style="float:{{{float|right}}}{{#if:{{{width|}}}|;width:{{{width}}}}}">{{#if:{{{title|}}}|<div class="t_sidebar_title">{{{title}}}</div>}}{{{contents}}}</div></includeonly><noinclude>
<noinclude>
{{Sidebar/Documentation}}
{{sidebar}}
This template is used to provide additional information in a sidenote style. It is used as follows:
<pre>{{sidebar
|float=left, right, or none (default: right)
|width=Box width (CSS syntax)
|title=Box title
|contents=Box contents
}}</pre>
 
[[Category:Templates|S]]</noinclude>
[[Category:Templates|S]]</noinclude>

Revision as of 23:18, 15 January 2008


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