Template:TOClimit



Usage
 

The template defaults to including only == level 2 == and === level 3 === headers.

You can specify a different limit by adding a header level:

 

4 allows ==== level 4 headers ==== but omits any subheadings below that from the TOC.