w:c:strategywiki>Prod (float via classes so we can set margins) |
w:c:strategywiki>Prod m (fix) |
||
Line 1: | Line 1: | ||
<templatestyles src="Template:Sidebar/styles.css" /><div class="t_sidebar t_sidebar_{{{float|right}}} {{#if:{{{class|}}}|t_sidebar_{{{class|}}}}}" {{#if:{{{width|}}}|width:{{{width}}}}}"> | <templatestyles src="Template:Sidebar/styles.css" /><div class="t_sidebar t_sidebar_{{{float|right}}} {{#if:{{{class|}}}|t_sidebar_{{{class|}}}}}" style="{{#if:{{{width|}}}|width:{{{width}}}}}"> | ||
{{#if:{{{title|}}}|<div class="t_sidebar_title">{{{title|}}}</div>}} | {{#if:{{{title|}}}|<div class="t_sidebar_title">{{{title|}}}</div>}} | ||
<div class="t_sidebar_contents">{{{contents|}}}</div> | <div class="t_sidebar_contents">{{{contents|}}}</div> |
Revision as of 19:03, 20 May 2022
Page Template:Sidebar/styles.css has no content.
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
Page Template:Sidebar/styles.css has no content.
{{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.
{{sidebar |float=right |class=banner |width=250px |title=Banner class example |contents=This is using the "banner" ''class''. }}