Template:TOC limit

 This template inserts a Table of Contents which omits subheadings beyond a certain depth. The table obeys the same layout rules as the magic word.

This template can be used by inserting the following into a page:   The template defaults to including only the first-level headings, e.g. those numbered "1", "2", etc. will still show but those numbered "1.1", "1.1.1", etc. will be hidden.

You can specify a different limit by adding a header level:   This includes the first- and second-level headings, e.g. those numbered "1", "2", "1.1", etc. will show but those numbered "1.1.1", etc. will be hidden.

This template was taken from .