Template:TOC

From Zelda Wiki, the Zelda encyclopedia
Jump to navigation Jump to search

Purpose

Customizes the table of contents.

Usage

Place the following where you wish the table of contents to be generated:

No ParametersLimitHorizontalColumns
This template can be used without parameters simply to change the location of the table of contents.
{{TOC}}
{{TOC|limit= }}
{{TOC|horizontal= }}
{{TOC|columns= }}
ParameterStatusDescriptionAccepted values
limitoptionalSets a maximum heading level. Any subheadings beyond this level are hidden.
  • 2
  • 3
  • 4
  • 5
horizontaloptionalHeadings at the specified level are laid out horizontally in the table of contents. Any headings beyond that level are hidden regardless of the limit setting.
  • 2
  • 3
  • 4
  • 5
  • 6
columnsoptionalSets a number of columns to use for the list of headings.
  • 1
  • 2
  • 3
  • 4
  • 5

Customizes the {{MediaWiki|Manual:Table of contents|table of contents.}}

Template parameters

ParameterDescriptionTypeStatus
limitlimit

Sets a maximum heading level. Any subheadings beyond this level are hidden.

Numberoptional
horizontalhorizontal

Headings at the specified level are laid out horizontally in the table of contents. Any headings beyond that level are hidden regardless of the <code>limit</code> setting.

Numberoptional
columnscolumns

Sets a number of columns to use for the list of headings.

Numberoptional

Examples

The above documentation is transcluded from Template:TOC/Documentation. (edit | history)