Template:TOClimit/doc

Do NOT change this template's type to "navigation". Doing so will prevent the table of contents from appearing on mobile.

Description
This template can be used to insert a TOC where certain header levels and those below will be hidden from the table of contents.

Dependencies
None, raw HTML and CSS from MediaWiki:Common.css

Syntax
Type  where you want to insert the table of contents.

Examples
This would generate a table of contents where headers of level 3 and below are hidden from the table of contents. In wiki terms, sub-heading level 2 would be heading level 3, as regular headers and sub-heading 1 are levels 1 and 2 respectively. In other words, it would show headers like x. and x.x, but it would hide x.x.x and everything below x.x.x, like so: