Template:TOC left/doc

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

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

ParameterDescriptionTypeStatus
stylestyle

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

Stringoptional