Template:TOC right/doc: Difference between revisions
Appearance
imported>Pathoschild update and expand |
imported>Pathoschild update for flags |
||
| Line 13: | Line 13: | ||
! valid values | ! valid values | ||
! description | ! description | ||
|- | |||
| | |||
| <tt>noautonum</tt> | |||
| Pass these flags as the first argument, like <code><nowiki>{{TOC right|noautonum}}</nowiki></code>. Possible flags: | |||
* <tt>noautonum</tt>: hide the section numbers. | |||
|- | |- | ||
| <tt>clear</tt> | | <tt>clear</tt> | ||
| Line 21: | Line 26: | ||
| ''any positive integer'' | | ''any positive integer'' | ||
| Set the width of the box. | | Set the width of the box. | ||
|} | |} | ||
Revision as of 15:28, 16 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 left. |
| width | any positive integer | Set the width of the box. |