(Added Category) |
m (6 revisions imported from usa:Template:TOC) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<div style="clear: {{{clear|both}}}; 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><noinclude> | <includeonly><div style="clear: {{{clear|both}}}; 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>{{documentation}} | ||
<!-- This category is only for the template itself --> | <!-- This category is only for the template itself --> |
Latest revision as of 21:09, 21 May 2020
Usage
Place the desired {{TOC}}
type template on the page where you want the table of contents to start.
For the floating TOC variants, use with {{clear}}, {{clear}} or {{clear}} to prevent image collisions. To remove the small default margin/padding included above the box, set |top=0
(or, to customize it, use |top=(a value)
).
Parameters
All of the following parameters are optional.
Related templates
- {{TOC}} -
- {{TOC left}} - forces the "Table of Contents" to float left with words floating right.
- {{TOC right}} -
- {{TOC center}} -
The above documentation is transcluded from Template:TOC/doc. Please add categories to the /doc subpage. Subpages of this template. |