Template:TOC

From Step Mods | Change The Game

Forum Topic

Purpose & Usage

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

N/A

Optional Parameters

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

Default Specification

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

Left aligned, no numbering, more heading levels

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

See Also

N/A