w:c:strategywiki>Notmyhandle (added width parameter, see Grand Theft Auto: San Andreas/Frequently Asked Questions for applicable situation) |
w:c:strategywiki>Notmyhandle (fixed new if; had 3 { brackets) |
||
Line 1: | Line 1: | ||
<div style="float:{{{1|{{{float|right}}}}}};margin-bottom:.5em;margin-{{#ifeq:{{{1|{{{float|right}}}}}}|right|left|right}}:1em;margin-top:.5em; | <div style="float:{{{1|{{{float|right}}}}}};margin-bottom:.5em;margin-{{#ifeq:{{{1|{{{float|right}}}}}}|right|left|right}}:1em;margin-top:.5em;{{#if:{{{width|}}}|width:{{{width}}};}}" {{#if:{{{2|{{{limit|}}}}}}|class="toclimit-{{{2|{{{limit}}}}}}"}}>__TOC__</div><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
[[Category:Templates|F]]</noinclude> | [[Category:Templates|F]]</noinclude> |
Revision as of 00:56, 1 April 2014
This page has been transcluded from Template:Floatingtoc/Documentation.
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.