Template:TOC left

From Wikibooks, open books for an open world
Jump to: navigation, search
Template documentation[edit] [history] [purge]

{{TOC left}} forces the auto-generated "Table of Contents" for a page to appear in a table that is floated to the left side of the page (as seen left), in order to improve page layout.

Usage

Insert {{TOCleft}} at the point in the page where you want the top of the Table of Contents box to appear. Use with {{-}} or {{clear}} to prevent image collisions.

Cautions

Do not place this template so that the TOC aligns with a large image or infobox; this breaks the layout on narrow screens (even users with screens as wide as 1024px wide can have problems). Also, a TOC that crosses a section division is probably a poor idea, if that can be avoided.

Unless the section in which the {{TOC left}} is placed is long enough, the result may well be undesirable.

It should only be used in cases where the TOC gets in the way of other content or is detrimental to the layout of the page. See Help:Editing#Floating the TOC for further guidelines.

See also