Template:Floatingtoc: Difference between revisions

Template page
w:c:strategywiki>Prod
(expanding usage)
w:c:strategywiki>Prod
mNo edit summary
Line 1: Line 1:
<div style="float:{{{float|right}}}" {{#if:{{{limit|}}}|class="toclimit-{{{limit|}}}"}}>__TOC__</div><noinclude>
<div style="float:{{{float|right}}};padding:0.1em" {{#if:{{{limit|}}}|class="toclimit-{{{limit|}}}"}}>__TOC__</div><noinclude>


==Usage==
==Usage==

Revision as of 17:19, 30 August 2008

Usage

{{floatingtoc|float|limit}}

  • float: Floats the table of contents to either the left or right side of the screen. Default is to float to the right.
  • limit: Used to show only the higher levels of the table of contents.

This template floats the table of contents on the right-hand side of the page. Don't use it in conjunction with another floating template such as infobox as they will collide in a rather unsightly manner. In such cases, leave this (rather than the other) template out, and let the page have a normal table of contents.