Difference between revisions of "Template:TOC right/doc"
Jump to navigation
Jump to search
Pathoschild (talk | contribs) (update and expand) |
Pathoschild (talk | contribs) (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. |