Template:TOC limit/doc

This template can be used to limit the table of contents based on header size, without causing the table of contents to have the float attribute.

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