Template:TOC limit/doc

This template can be used to limit the table of contents based on header size.

The parameter or  can be set to a header size to show only up to that size.