Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 21:11, 30 November 2025 by imported>Keplare (Created page with "<div id="toctemplate" style="clear:{{{clear|left}}}; float:{{#switch:{{{align|{{{1|}}}}}}|right=right|center=center|left=left}}; margin:{{#switch:{{{align|{{{1|}}}}}}|right=0 0 1.5em 1.5em|left=0 1.5em 1.5em 0|#default=0}}; width:{{{width|auto}}};" class="nomobile {{#if:{{{limit|}}}| toclimit-{{#expr:{{{limit}}}+1}}}} {{#if:{{{class|}}}|{{{class|}}}|}}">__TOC__</div><noinclude>{{/doc}}</noinclude>")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]
Template loop detected: Template:DW/ToC/doc
The above text is transcluded from Template:DW/ToC/doc; you can change it or view its history.
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:DW/ToC/doc. (View all subpages of this page.)

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

  • {{ToC|align}}
  • {{ToC|align|clear|width|limit}}

Optional parameters

{{ToC
| align = the alignment of the table
| 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
}}
Contents