From Fedora Project Wiki

Template documentation

The {{TOCright}} template can be used to position a page's Table of Contents box on its right margin, allowing the text content to wrap around it rather than start beneath it.

Usage

Enter {{TOCright}} on the page where you want the top of the table of contents box to appear.

Parameters

Name Description
|align= Supplies a value to the float: CSS property; can be one of: left, right (default), none or inherit.
|clear= Supplies a value to the clear: CSS property; can be one of: left, right (default), both, none or inherit.
|noautonum= When assigned the value yes, hides the section numbers in the ToC; all other values are ignored.
|num=
|show=
Sets the maximum depth of the table of contents, i.e. the deepest heading level (number of equality symbols surrounding the heading) that will be shown; accepts integer values between 1 and 6, inclusive.
|width=
|1=
Defines the width of the ToC box; accepts any valid CSS length unit value, defaults to auto. Can also be supplied as the sole unnamed parameter, as in {{TOCright|12.5vw}}.

Examples

  • {{TOCright|align=right|clear=both|show=4|width=20%}}
  • {{TOCright|24em|num=3}}
  • {{TOCright|clear=none|noautonum=yes}}

See also