Template:Sidebar: Difference between revisions

Template page
w:c:strategywiki>Koweja
No edit summary
w:c:strategywiki>Inarius
(added float parameter)
Line 1: Line 1:
<div style="float: right; margin: 0px 10px 10px 10px; border: 1px solid #7d87bc; background-color: #d0d5f1; padding: 3px; width: {{{width}}};">{{qif|test={{{title|}}}|then=<div style="text-align: center; font-size: larger; color:#556; ">
<div style="float: {{qif|test={{{float|}}}|then={{{float}}}|else=right}}; margin: 0px 10px 10px 10px; border: 1px solid #7d87bc; background-color: #d0d5f1; padding: 3px; width: {{{width}}};">{{qif|test={{{title|}}}|then=<div style="text-align: center; font-size: larger; color:#556; ">
'''{{{title}}}'''
'''{{{title}}}'''
</div>}}{{{contents}}}
</div>}}{{{contents}}}
Line 5: Line 5:
<noinclude>This template is used to provide additional information in a sidenote style. It is used as follows:
<noinclude>This template is used to provide additional information in a sidenote style. It is used as follows:
<pre>{{sidebar
<pre>{{sidebar
|float=left, right, or none (default: right)
|width=Box width (CSS syntax)
|width=Box width (CSS syntax)
|title=Box title
|title=Box title

Revision as of 18:44, 23 October 2006

Template:Qif{{{contents}}}

This template is used to provide additional information in a sidenote style. It is used as follows:

{{sidebar
|float=left, right, or none (default: right)
|width=Box width (CSS syntax)
|title=Box title
|contents=Box contents
}}