From StrategyWiki, the video game walkthrough and strategy guide wiki
Jump to navigation Jump to search
m (Cleanup)
(use styles for each guide)
 
(37 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<div style="float: {{#if:{{{float|}}}|{{{float}}}|right}}; margin: 0px 10px 10px 10px; border: 1px solid #7d87bc; background-color: #d0d5f1; padding: 3px; width: {{{width}}};">{{#if:{{{title|}}}|<div style="text-align: center; font-size: larger; color:#556; ">
<templatestyles src="Template:Sidebar/styles.css" />{{#if:{{{styles|}}}|{{#tag:templatestyles||src=Template:Sidebar/styles-{{{styles|}}}.css}}}}<div class="t_sidebar t_sidebar_{{{float|right}}} {{#if:{{{class|}}}|t_sidebar_{{{class|}}}}}" style="{{#if:{{{width|}}}|width:{{{width}}};}}{{#if:{{{clear|}}}|clear:{{{clear}}};}}">
'''{{{title}}}'''
{{#if:{{{title|}}}|<div class="t_sidebar_title">{{{title|}}}</div>}}
</div>}}{{{contents}}}
<div class="t_sidebar_contents">
</div>
{{{contents|}}}</div>
<noinclude>This template is used to provide additional information in a sidenote style. It is used as follows:
</div><noinclude>
<pre>{{sidebar
{{Documentation}}
|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]]</noinclude>

Latest revision as of 04:10, 23 June 2023

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 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''.
}}