Template:TOCright/Doc

From Starfield Wiki
Jump to: navigation, search

Summary[edit]

This template places a right-aligned table of contents (TOC) at the location where the template is placed. The TOC is in a floating table, so text will be placed side-by-side next to the TOC.

This template was originally copied from Wikipedia.

Parameters[edit]

TOCright
Parameter Scope Description
1 optional The maximum width of the table. Percentage or units are both acceptable; the unit or percent sign must be specified.
limit optional The limit the subheaders shown in the TOC. For example, limit=2 would only show level-1 or level-2 headers (=..= or ==..==). (Default is 4.)
clear optional Changes the setting for the CSS clear parameter, forcing other content to appear below the TOC on the side(s) specified. Possible values are left, right, both, or none. (Default is "right".)
nopadding optional If a value is specified, removes the extra padding around the TOC. This can be useful when the TOC is placed next to headers or images, for example.

Example[edit]

{{TOCright}}