Template:TOC limit
Jump to navigation
Jump to search
[edit] [ ] Template documentation
This documentation is transcluded from Template:TOC limit/doc. (edit | history)
Editors can experiment in this template's sandbox (create) and test cases (create) pages.
Subpages of this template.
Editors can experiment in this template's sandbox (create) and test cases (create) pages.
Subpages of this template.
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 |