Template:TOC: Difference between revisions
From MediaWiki
Jump to navigationJump to search
m Reorganizing templates into subcategories. |
mNo edit summary |
||
| (5 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{# | <includeonly>{{#if:{{{suppress|}}}|__NOTOC__|<div style="clear: {{{clear|none}}}; margin-bottom: .5em; float: {{{align|none}}}; {{#ifeq: {{lc:{{{align|}}}}} | right | margin-left:2.5em; | {{#ifeq: {{lc:{{{align|}}}}} | left | margin-right:2.5em; | <!-- align=none --> }} }} width: {{{width|auto}}};" {{#if:{{{limit|}}}|class="toclimit-{{{limit|}}}"}}>__TOC__</div>}}</includeonly><noinclude> | ||
{{ | This template is no longer an affront before God, and can be used by anyone. | ||
{ | |||
{{ | <pre> | ||
{{TOC | |||
}}</includeonly><noinclude> | |align= Which side to align the table of contents to. Aligns left by default. | ||
This template is an affront before God, and | |limit= The maximum header level to limit to. By default all headers are included. | ||
|width= The width of the TOC. Defaults to 'auto'. | |||
|clear= What to set the CSS 'clear' property to. This determines which side (or both) of the TOC things are not allowed to float on. Defaults to 'none'. | |||
|suppress= If set to true, the TOC will be hidden completely. | |||
}} | |||
</pre> | |||
{{TOC|align=right|limit=3|width=200px|clear=none}} | |||
[[Category:Layout templates]] | [[Category:Layout templates]] | ||
</noinclude> | </noinclude> | ||
Latest revision as of 20:27, 30 June 2023
This template is no longer an affront before God, and can be used by anyone.
{{TOC
|align= Which side to align the table of contents to. Aligns left by default.
|limit= The maximum header level to limit to. By default all headers are included.
|width= The width of the TOC. Defaults to 'auto'.
|clear= What to set the CSS 'clear' property to. This determines which side (or both) of the TOC things are not allowed to float on. Defaults to 'none'.
|suppress= If set to true, the TOC will be hidden completely.
}}

