Template:TOC Limit: Difference between revisions

From Kainga Encyclopedia
Jump to navigation Jump to search
imported>NotoriousRBG
(Created page with "<div class="toclimit-{{{1|{{{limit|3}}}}}}">__TOC__</div>")
 
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div class="toclimit-{{{1|{{{limit|3}}}}}}">__TOC__</div>
<onlyinclude><div class="toclimit-{{{1|{{{limit|3}}}}}}">__TOC__</div></onlyinclude>
This template allows you to limit the table of contents from nesting too far.
 
Usage: simply insert the <code><nowiki>{{TOC Limit|N}}</nowiki></code> template line at the top of a page and the TOC will be limited to linking up to level N. (Note that most headers are level 2, so you should probably not use <code><nowiki>{{TOC Limit|1}}</nowiki></code> unless you know what you're doing.) The default is 3.

Latest revision as of 15:00, 8 September 2024

This template allows you to limit the table of contents from nesting too far.

Usage: simply insert the {{TOC Limit|N}} template line at the top of a page and the TOC will be limited to linking up to level N. (Note that most headers are level 2, so you should probably not use {{TOC Limit|1}} unless you know what you're doing.) The default is 3.