Template:TOC limit/doc

From Uncyclopedia, the content-free encyclopedia
Jump to navigation Jump to search
This is a documentation subpage for Template:TOC limit.
It contains usage information, categories and other content that is not part of the original template page.
To view the template page itself, see Template:TOC limit.

Description

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

Template parameters

ParameterDescriptionTypeStatus
Limit1 limit

Maximum header depth to be included in table of contents

Default
3
Numbersuggested