Template:TOC right: Difference between revisions
Appearance
imported>Kektklik saw there were a few pages with a right-aligned TOC, here's a template. |
imported>Oath2order No edit summary |
||
| Line 1: | Line 1: | ||
<div style="clear: {{{clear|right}}}; margin-bottom: .5em; float: right; padding: .5em 0 .8em 1.4em; background: none; width: {{{width|{{{1|auto}}}}}};" {{#if:{{{limit|}}}|class="toclimit-{{{limit}}}"}}>__TOC__</div><noinclude> | <div style="clear: {{{clear|right}}}; margin-bottom: .5em; float: right; padding: .5em 0 .8em 1.4em; background: none; width: {{{width|{{{1|auto}}}}}};" {{#if:{{{limit|}}}|class="toclimit-{{{limit}}}"}}>__TOC__</div><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude> | ||
{{ | |||
</noinclude> | |||
Revision as of 22:03, 21 March 2016
==Description==
This template will force the page's table of contents to appear and align it the right.
Use
Add {{TOC right}} (see result at right).
You can customise the template with these optional parameters. It's best not to use these in most cases, to keep TOCs consistent.
| parameter | valid values | description |
|---|---|---|
| noautonum | Pass these flags as the first argument, like {{TOC right|noautonum}}. Possible flags:
| |
| clear | left right both none |
Forces any floating content on the given side to move down below the TOC. The default value is right. |
| width | any positive integer | Set the width of the box. |