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.


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)

To remove the small default margin/padding included above the box, set |top|0 (or, to customize it, use |top|(a value)).
Set the CSS width.
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)