Template:Sidebar: Difference between revisions
Appearance
Created page with "<noinclude> == USAGE == <nowiki> {{Sidebar|''stuff'' | title = Hello | width = 250 px}} </nowiki> * ''stuff'' is usually a bulleted list * title is the title of the sidebar; d..." |
new parameter float (default=floatright). render as inline-table (to allow displaying multiple TOCs in one line if needed) |
||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
== USAGE == | == USAGE == | ||
<nowiki> {{Sidebar|''stuff'' | title = Hello | width = 250 px}} </nowiki> | <nowiki> {{Sidebar|''stuff'' | title = Hello | width = 250 px | float = none}} </nowiki> | ||
* ''stuff'' is usually a bulleted list | * ''stuff'' is usually a bulleted list | ||
* title is the title of the sidebar; default: Related information | * title is the title of the sidebar; default: Related information | ||
* width is the width of the sidebar; default: 300px | * width is the width of the sidebar; default: 300px | ||
* float is where the sidebar goes; default: floatright | |||
== EXAMPLES == | == EXAMPLES == | ||
| Line 13: | Line 14: | ||
|title=Greek alphabet | |title=Greek alphabet | ||
|width=500px | |width=500px | ||
|float=none | |||
}} | }} | ||
<pre>{{Sidebar| | <pre>{{Sidebar| | ||
| Line 31: | Line 33: | ||
== CODE == | == CODE == | ||
</noinclude>{| class="wikitable sortable mw-collapsible floatright" style="border: 1px solid steelblue; width:{{{width|300px}}}" | </noinclude>{| class="wikitable sortable mw-collapsible {{{float|floatright}}}" style="display: inline-table; border: 1px solid steelblue; width:{{{width|300px}}}" | ||
|- | |- | ||
! style="text-align: left;" | {{{title|Related information}}} | ! style="text-align: left;" | {{{title|Related information}}} | ||
Revision as of 07:04, 22 January 2020
USAGE
{{Sidebar|''stuff'' | title = Hello | width = 250 px | float = none}}
- stuff is usually a bulleted list
- title is the title of the sidebar; default: Related information
- width is the width of the sidebar; default: 300px
- float is where the sidebar goes; default: floatright
EXAMPLES
| Greek alphabet |
|---|
|
{{Sidebar|
* Alpha
* Beta
* Gama
|title=Greek alphabet
|width=500px
}}
| Related information |
|---|
{{Sidebar|[[File:Online.png]]}}
CATEGORIZATION
This template belongs to Category:Templates.
CODE
| Related information |
|---|
|