Template:TOC

From Step Mods | Change The Game
Revision as of 16:48, August 2, 2021 by Z929669 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Forum Topic

Purpose & Usage[edit source]

Allows customizing the table of contents (TOC) on the left or right side of the content area. Heading depth can be specified and numbering can be turned off. Default template call (without parameters) results in a numbered TOC on the right with a max of three heading levels.

NOTE: Default wiki behavior is left-aligned TOC with all applicable heading levels shown and numbered.

Required Parameters[edit source]

N/A

Optional Parameters[edit source]

float - Specify to float the TOC to the left.

Values
Default: float=right
  • left
  • right

limit - Limit the TOC hierarchy from the top to the bottom heading number specified (excluding h1).

Values
Default: limit=3
  • 2 through 6

number - Disable the outline numbering prefix in the TOC items.

Values
Default: number=on
  • on
  • off

Examples[edit source]

Default Specification[edit source]

{{TOC}} Default specification. Equivalent to: {{{TOC|float=right|limit=3}}

Left aligned, no numbering, more heading levels[edit source]

{{TOC|left|limit=4|number=off}}

See Also[edit source]

N/A