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

Template:Toclimit/doc: Difference between revisions

Template page
Created page with ";Description :This limits the level of heading displayed in the TOC. This uses <nowiki>__TOC__</nowiki>, so the TOC will appear where the heading is. ;Required CSS <syntaxhig..."
 
No edit summary
Line 3: Line 3:


;Required CSS
;Required CSS
<syntaxhighlight lang="css">
 
.toclimit-2 .toclevel-1 ul,
:.toclimit-2 .toclevel-1 ul,
.toclimit-3 .toclevel-2 ul,
:.toclimit-3 .toclevel-2 ul,
.toclimit-4 .toclevel-3 ul,
:.toclimit-4 .toclevel-3 ul,
.toclimit-5 .toclevel-4 ul,
:.toclimit-5 .toclevel-4 ul,
.toclimit-6 .toclevel-5 ul,
:.toclimit-6 .toclevel-5 ul,
.toclimit-7 .toclevel-6 ul { display: none; }
:.toclimit-7 .toclevel-6 ul { display: none; }
</syntaxhighlight>
 
:toclevel-# is standard in all TOCs. toclimit-# is not; it is a div encasing the TOC when this template is used.
:toclevel-# is standard in all TOCs. toclimit-# is not; it is a div encasing the TOC when this template is used.