Template:TOC right/doc: Difference between revisions
Appearance
imported>Pathoschild update for flags |
imported>Margotbean No edit summary |
||
| Line 21: | Line 21: | ||
| <tt>clear</tt> | | <tt>clear</tt> | ||
| <tt>left</tt><br /><tt>right</tt><br /><tt>both</tt><br /><tt>none</tt> | | <tt>left</tt><br /><tt>right</tt><br /><tt>both</tt><br /><tt>none</tt> | ||
| Forces any floating content on the given side to move down below the TOC. The default value is <tt> | | Forces any floating content on the given side to move down below the TOC. The default value is <tt>right</tt>. | ||
|- | |- | ||
| <tt>width</tt> | | <tt>width</tt> | ||
Revision as of 07:47, 19 May 2017
Description
This template will force the page's table of contents to appear and align it the right.
Usage
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. |