w:c:strategywiki>Prod m (fix) |
w:c:strategywiki>Prod (use TemplateStyles) |
||
Line 1: | Line 1: | ||
{{high-risk}} | {{high-risk}} | ||
{{TemplateStyles|Template:Floatingtoc/styles.css}} | |||
==Usage== | ==Usage== | ||
Line 8: | Line 9: | ||
* ''width'': puts a limit on the horizontal width of the div. Useful for FAQ pages with sentence-long headers. | * ''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 {{t|Game}} 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 {{t|Game}} 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]]</noinclude> |
Revision as of 17:34, 27 September 2021
This template uses TemplateStyles: |
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 left.
- 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 {{Game}} 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.