Template:TOC limit

From The Orthorbbae Library
Jump to: navigation, search

This template inserts a Table of Contents which omits subheadings beyond a certain depth, overriding the default TOC. Omitted sections still have section edit links in the article body; the main use for this template is situations where you want section edit links for ease of editing but don't want to clutter the table of contents.

Usage

{{TOC limit}}

The template defaults to including second and third-level headings, e.g. those numbered "1" and "1.1" in the TOC. (Note: The first-level heading on a page is, by default, the page title.)

You can specify a different limit by adding a header level. For example: {{TOC limit|4}}

This would allow for fourth-level headings, e.g. "1.1.1", but omit any subheadings below that from the TOC.

Note: This template over-rides the default location of the Table of Contents. The Table will show up at the line in which the template is added. For consistency, place the template at the end of the the body of text beneath the page header itself.


Test

Test

Test

Test

Test

Test

Test

Test