Template:TOClimit
The UESPWiki – Your source for The Elder Scrolls since 1995
Due to the sensitive nature of this template or the fact that it is used on a large number of pages, it has been semi-protected to prevent site-wide damage by vandal bots. Editors: In order to minimize the impact on our servers, please use sandboxes to make and test changes to widely used templates before deployment. For more information, please see this article's talk page. |
Summary
This template places a table of contents (TOC) at the location where the template is. The only difference from a standard TOC is that the subheaders shown in the TOC can be controlled, using the limit parameter.
This template was originally copied from Wikipedia.
Parameters
Parameter | Scope | Description |
---|---|---|
1 or limit | required | The limit to place on the subheaders shown in the TOC. limit=4 is the same as the default wiki settings. limit=2 would only show level-1 or level-2 headers (=...= or ==...== ). Values below 2 are ignored by the MediaWiki software, resulting in a normal TOC. |
align | optional | Specify left or right to align the TOC left or right. This is functionally identical to using {{TOCleft|limit=x}} . |
clear | optional | Changes the setting for the CSS clear parameter, other content to appear below the TOC on the side(s) specified. Possible values are left, right, both, or none. (Default is the same as the align parameter.) |
max-width | optional | The maximum width of the table. Percentage or units are both acceptable; the unit or percent sign must be specified. |
nopadding | optional | If a value is specified, removes the extra padding around the TOC. This can be useful when the TOC is placed next to headers or images, for example. |
Example
{{TOClimit|2}}
Contents
Demonstration
Notice that this section, being under a level-3 header, does not show in the TOC.