Last edited one day ago

TOCMaxDepth

1. Usage

The TOCMaxDepth template is used to limit the table of contents depth. If this template is not used, the depth of the table of contents can contain up to 6 levels and could be then unreadable. This template must be set just before the first title of the article to be aligned with normal TOC. The TOC is displayed where the template is used. This template can be used only once per article.

Usage: {{TOCMaxDepth| maxdepth=<MaxDepth>}}

Where:

  • <MaxDepth> is heading levels (up to level 5) that must be displayed in the TOC. If value is 2, the TOC is 2 levels deep



2. Templatedata

Customized TOC

Template parameters

ParameterDescriptionTypeStatus
maxdepthmaxdepth

Limits heading levels (up to level 5). If value is 2, the TOC is 2 levels deep

Suggested values
2 3 4 5
Numberrequired

3. Basic examples

3.1. Level2: created especially for test

3.1.1. Level3: created especially for test

3.1.1.1. Level4: created especially for test
3.1.1.1.1. Level5: created especially for test
You type You get
TOC displaying only 3 levels
{{TOCMaxDepth| maxdepth=3}}

4. Maintenance

This template is a template common to all ST wikis.
Modifications must be done into the WikiModel. They must be reviewed by all ST wikis maintainers.
When approved, the template can be pushed/merged towards all ST wikis.

5. Code

No categories assignedEdit