Template:ToC: Difference between revisions

From [N8]
Jump to navigation Jump to search
mNo edit summary
m Undo revision 4371 by Banri (talk)
Tag: Undo
 
Line 1: Line 1:
<includeonly><div id="toctemplate" style="position:"absolute" clear:{{{clear|left}}}; float:{{#switch:{{{align|{{{1|left}}}}}}|right=right|center=center|none=none|left|#default=left}}; margin:{{#switch:{{{align|{{{1|left}}}}}}|right=0 0 1.5em 1.5em|#default=0  1.5em 1.5em 0}}; width:{{#if:{{{width|}}}|{{px|{{{width}}}}}px|auto}};" {{#if:{{{limit|}}}|class="toclimit-{{#expr:{{{limit}}}+1}}"}}>__TOC__</div></includeonly><noinclude>{{/doc}}</noinclude>
<includeonly><div id="toctemplate" style="clear:{{{clear|left}}}; float:{{#switch:{{{align|{{{1|left}}}}}}|right=right|center=center|none=none|left|#default=left}}; margin:{{#switch:{{{align|{{{1|left}}}}}}|right=0 0 1.5em 1.5em|#default=0  1.5em 1.5em 0}}; width:{{#if:{{{width|}}}|{{px|{{{width}}}}}px|auto}};" {{#if:{{{limit|}}}|class="toclimit-{{#expr:{{{limit}}}+1}}"}}>__TOC__</div></includeonly><noinclude>{{/doc}}</noinclude>

Latest revision as of 04:52, 3 June 2020

Template documentation
This documentation is transcluded from Template:ToC/doc. [edit] [purge]

The ToC template aligns the "Table of Contents" in a page. The table may now be able to float at the left or right of a page and the text should wrap around it. This template can improve page layouts in certain cases. It can also force-insert a table of contents in pages where there are not enough sections for an automatic insertion of a "Table of Contents".

Usage

Optional parameters

{{ToC
|align = the alignment of the table; defaults to LEFT
|clear = equivalent of placing <br clear=> above the table; defaults to LEFT
|width = the width of the table; defaults to AUTO
|limit = the limit of the sections displayed; the default is no limits
}}