Template:TOC

From Cosmoteer Wiki
Jump to navigation Jump to search


Template documentation
View or edit this documentation. (About template documentation)
CalloutIconNote.pngNote
Portions of the template sample may not be visible without values provided.

Since TOC relies on a page contents and can only be used once, the examples isolated into separate pages:

Page Description
Template:TOC/example1 Basic usage with no params.
Template:TOC/example2 "depth" param example.
Template:TOC/example3 "align" param example.


TOC with some customizations. Note that this template forces the TOC onto the page using "__TOC__" magic word (this is done for the consistency of the changes that the template applies). This template uses the regular TOC, so all its quirks and limitation apply too (like displaying only the latest TOC).

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Depthdepth

The depth of headers shown in the TOC. Default is «6» (all headers).

Suggested values
2 3 4 5 6
Default
6
Auto value
6
Linesuggested
Alignalign

Alignment of the TOC. Any casing (including lowercase) is supported.

Suggested values
Left Right
Default
Left
Stringoptional