Template:TOC limit

 This template places the Table of Contents at the location it is used and limits the depth of the headings displayed. Example:

Usage
.toclimit-2 .toclevel-1 ol, .toclimit-3 .toclevel-2 ol, .toclimit-4 .toclevel-3 ol, .toclimit-5 .toclevel-4 ol, .toclimit-6 .toclevel-5 ol, .toclimit-7 .toclevel-6 ol { display: none; }
 * limit : (Optional) You can set this parameter or use the first positional argument to specify the depth of the headings to be displayed. Subheadings below this will be hidden. This argument must be set to an integer between 2 and 6. The default is 3 which will display headings denoted by   and  . This works in conjunction with CSS selectors in the wiki's CSS file: