Kentsmith9 (talk | contribs) (Added Category) |
m (1 revision imported from india:Template:TOC: to import templates) |
||
(3 intermediate revisions by 2 users 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 14:05, 17 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. |