Template:TOC View history

(Created page with "<div style="clear: {{{clear|both}}}; margin-bottom: .5em; float: {{{align|none}}}; {{#ifeq: {{lc:{{{align|}}}}} | right | margin-left:2.5em; | {{#ifeq: {{lc:{{{align|}}}}} | l...")
 
m (1 revision imported from india:Template:TOC: to import templates)
 
(6 intermediate revisions by 3 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>
<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}}
<noinclude>
 
{{doc}}
<!-- This category is only for the template itself -->
[[Category:Template Management]]
[[Category:Missing Template Documentation]]
 
</noinclude>
</noinclude>

Latest revision as of 14:05, 17 May 2020

Documentation icon Template documentation[view] [edit] [history] [purge]

This documentation serves for the suite of {{TOC}} templates. They generally use the same optional parameters, but each has a different attribute.

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

The above documentation is transcluded from Template:TOC/doc.
Please add categories to the /doc subpage.
Subpages of this template.