w:c:strategywiki>Notmyhandle (whoops) |
w:c:strategywiki>Notmyhandle (added width parameter) |
||
Line 2: | Line 2: | ||
==Usage== | ==Usage== | ||
{{t|floatingtoc|float|limit}} | {{t|floatingtoc|float|limit|width}} | ||
* ''float'': | * ''float'': floats the table of contents to either the left or right side of the screen. Default is to float to the right. | ||
* ''limit'': | * ''limit'': used to show only the higher levels of the table of contents. | ||
* ''width'': puts a limit on the horizontal width of the div. Useful for FAQ pages with sentence-long headers. | |||
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 [[Template:infobox|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. | 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 [[Template:infobox|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. | ||
<noinclude>[[Category:Template documentation|F]]</noinclude> | <noinclude>[[Category:Template documentation|F]]</noinclude> |
Revision as of 00:52, 1 April 2014
Usage
{{floatingtoc|float|limit|width}}
- 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.
- width: puts a limit on the horizontal width of the div. Useful for FAQ pages with sentence-long headers.
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.