Template:TOC
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= }}
Parameter | Status | Description | Accepted values |
---|---|---|---|
limit | optional | Sets a maximum heading level. Any subheadings beyond this level are hidden. |
|
horizontal | optional | Headings 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. |
|
columns | optional | Sets a number of columns to use for the list of headings. |
|
Customizes the {{MediaWiki|Manual:Table of contents|table of contents.}}
Parameter | Description | Type | Status | |
---|---|---|---|---|
limit | limit | Sets a maximum heading level. Any subheadings beyond this level are hidden. | Number | optional |
horizontal | horizontal | 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. | Number | optional |
columns | columns | Sets a number of columns to use for the list of headings. | Number | optional |
Examples
- Enemies in Cadence of Hyrule (
horizontal
parameter) - Guidelines:CSS (
limit
parameter)
The above documentation is transcluded from Template:TOC/Documentation. (edit | history)