Template:TOC limit

 This template inserts a Table of Contents with a certain depth of subheadings. For details, see Wikipedia:Template:TOC limit.

Usage
The template defaults to including only the first- and second-level headings, e.g. those numbered "1" and "1.1" in the TOC.

You can specify a different limit by adding a header level:

4 allows for third-level headings, e.g. "1.1.1", but omits any subheadings below that from the TOC.