Template:Sidebar: Difference between revisions

Template page
w:c:strategywiki>Skizzerz
(attempting to fix float... dunno why it isn't working >_>)
m (51 revisions imported: Imported from https://strategywiki.org/)
 
(29 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly><div class="t_sidebar" style="float:{{{float|right}}}; {{#if:{{{width|}}}|width:{{{width}}}}}">{{#if:{{{title|}}}|<div class="t_sidebar_title">{{{title}}}</div>}}{{{contents}}}</div></includeonly><noinclude>
<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}}};}}">
{{Sidebar/Documentation}}
{{#if:{{{title|}}}|<div class="t_sidebar_title">{{{title|}}}</div>}}
[[Category:Templates|S]]</noinclude>
<div class="t_sidebar_contents">
{{{contents|}}}</div>
</div><noinclude>
{{Documentation}}
 
[[Category:Templates]]</noinclude>

Latest revision as of 18:27, 28 October 2023

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

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[edit source]

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

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