Template:TOC limit

From Ethene

Template for changing the way the table of contents is rendered.

Explanation

  • limit: How many heading levels to show in the table of contents. The lower, the fewer headings are shown. Note that in articles, the main level for headings starts at 2 (the article title is H1, so limit=1 would generally show no headings at all).
  • align: Whether to align the table of contents to the "right" or "left". The default is left.

Usage

{{TOC limit|limit=|align=}}

Example

{{TOC limit|limit=2|align=left}}