Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:TOC Limit/doc

Template page
Revision as of 23:49, 6 April 2026 by Shirra (talk | contribs) (Created page with "{{Documentation/Header}} Template for hiding headings in TOC. Hidden headings are still visible in the TOC on the left side of the page. ==Syntax== {{T|TOC Limit|v1=heading number|v2=right=float TOC to the right}} ==CSS== To work, this template requires the following CSS: <pre> TOC hide headings: .toclimit-2 .toclevel-1 ul, .toclimit-3 .toclevel-2 ul, .toclimit-4 .toclevel-3 ul, .toclimit-5 .toclevel-4 ul, .toclimit-6 .toclevel-5 ul, .toclimit-7 .toclevel-6 ul {...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This is the documentation page for TOC Limit.
It contains usage information, categories, and other content not part of the original template page.

Template for hiding headings in TOC. Hidden headings are still visible in the TOC on the left side of the page.

Syntax

{{TOC Limit|heading number|right = float TOC to the right}}

CSS

To work, this template requires the following CSS:

/* TOC hide headings */
.toclimit-2 .toclevel-1 ul,
.toclimit-3 .toclevel-2 ul,
.toclimit-4 .toclevel-3 ul,
.toclimit-5 .toclevel-4 ul,
.toclimit-6 .toclevel-5 ul,
.toclimit-7 .toclevel-6 ul {
	display: none;
}