w:c:strategywiki>Notmyhandle (moved margin from inner div to outer border) |
w:c:strategywiki>Notmyhandle (correction) |
||
| Line 1: | Line 1: | ||
<includeonly><div class="t_sidebar {{#if:{{{class|}}}|t_sidebar_{{{class|}}}}}" style="margin-right: | <includeonly><div class="t_sidebar {{#if:{{{class|}}}|t_sidebar_{{{class|}}}}}" style="margin-right:20px;float:{{{float|right}}};{{#if:{{{width|}}}|width:{{{width}}}}}">{{#if:{{{title|}}}|<div class="t_sidebar_title" style="text-align:center;">{{{title}}}</div>}}{{#ifeq:{{{class|}}}|banner|<div style="padding:3px">}} | ||
{{{contents}}}{{#ifeq:{{{class|}}}|banner|</div>}}</div></includeonly><noinclude> | {{{contents}}}{{#ifeq:{{{class|}}}|banner|</div>}}</div></includeonly><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
[[Category:Templates|S]]</noinclude> | [[Category:Templates|S]]</noinclude> | ||
Revision as of 17:23, 10 January 2014
This page has been transcluded from Template:Sidebar/Documentation.
| This template uses TemplateStyles: |
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''.
}}