w:c:strategywiki>DrBob m (Description) |
m (20 revisions imported: Imported from https://strategywiki.org/) |
||
(18 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
<div style="float: | <templatestyles src="Template:Floatingtoc/styles.css" /><div class="t_floatingtoc {{#if:{{{2|{{{limit|}}}}}}|toclimit-{{{2|{{{limit}}}}}}}}" style="float:{{{1|left}}};margin-{{{1|left}}}:0;{{#if:{{{width|}}}|width:{{{width}}};}}" >__TOC__</div><noinclude> | ||
__TOC__ | {{Documentation}} | ||
</div> | |||
<noinclude> | |||
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> |
Latest revision as of 18:24, 28 October 2023
Page Template:Floatingtoc/styles.css has no content.
This page has been transcluded from Template:Floatingtoc/Documentation.
This template uses TemplateStyles: |
Usage[edit source]
{{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.