Template:TOC limit/doc
Jump to navigation
Jump to search
Prefer the reduction of page size over the reduction of TOC size. |
Description
This template uses TemplateStyles: |
Prunes a page's Table of Contents (TOC) at a particular depth. Headers out of sequence or affected by other TOC templates do not work as expected.
Usage
Both are equivalent:
{{TOC limit|depth}}
{{TOC limit|limit=depth}}
Example
Limit headers to level 2 for a page overview:
{{TOC limit|2}}
TemplateData
Inserts a Table of Contents that omits subheadings beyond a certain depth
Parameter | Description | Type | Status | |
---|---|---|---|---|
Limit | 1 limit | Maximum header depth to be included in table of contents
| Number | suggested |