# Template:TOC

(Redirected from Template:Toclimit)
50px Template documentation[view]  [history] [purge]

Tables of contents contain links to sections within an article, providing easy and automatic on-page navigation.

## Standard Tables of Contents

You may hide an individual table of contents when viewing an article by clicking the "hide" link in the table. Alternately, if you do not wish to see any tables of contents, you may deactivate their display entirely within the Misc tab of your user preferences. Simply uncheck the box next to "Show table of contents (for pages with more than 3 headings)" and no tables of contents will be displayed.

Several magic words and templates exist which modify the standard tables of contents.

To force the table of contents to appear regardless of how many headings an article has, simply add the magic word __TOC__ anywhere within the article. The table of contents will appear wherever you place the template, allowing you to move it up or down the page from its normal position.

It's possible to limit the depth of headings which are included in the table using the {{toclimit}} template. By setting a number value for |limit=, only headings of the specified level or greater will display. For example, {{toclimit|limit=2}} will include only level two headings (==Heading==), while {{toclimit|limit=3}} will include level three headings (===Heading===) as well as level two headings, and so on.
Like the other TOC templates, {{toclimit}} will cause the table to appear wherever the template is placed on the page. Additionally, both {{tocleft}} and {{tocright}} support the use of the |limit variable.