Template:TOC left

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Template documentationview · edit · history · purge ]
This documentation is transcluded from Template:TOC left/doc.
The TOC here is an example of {{TOCleft}} at work. Sections are NOT RECOMMENDED for simple Template:documentation subpages.

Usage

[edit]

{{TOCleft}} produces this Table of Contents positioned along the left edge of the page. Vertical positioning is dependent on where the TOCleft template is included in the "normal flow" of the page text. You can use {{-}} or similar constructs for a style="clear:left" effect before the first section.

Example

[edit]

This template moves the

[edit]

Table of Contents

[edit]
to the left edge
[edit]

Forced __TOC__ wrapped in a div-element with style="float: left; padding-right: 1em"

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
stylestyle

Unquoted inline style, e.g., width:40%

Stringoptional