Template:TOC left

From PZwiki
Jump to: navigation, search
[view] [edit] [history] [purge] Template documentation
{{TOC left}} forces the auto-generated "Table of Contents" for an article to appear floated to the left side of the page (as seen left), in order to improve article layout.

Usage

Insert {{TOC left}} at the point in the article where you want the top of the Table of Contents box to appear. Use with {{clear}} to prevent e.g. image collisions.

Parameters (optional)

top
To remove the small default margin/padding included above the box, set |top|0 (or, to customize it, use |top|(a value)).
width
Set the CSS width.
limit
Limits the depth of subheadings shown. For instance using |limit=4 will hide the fourth level and deeper subheadings in the hierarchy. And |limit=2 will hide all subheadings leaving only the main headings. This is implemented as a CSS class in the MediaWiki:Common.css.

See also

Documentation transcluded from Template:TOC left/doc.
Editors can experiment in this template's sandbox (create)