Difference between revisions of "Template:TOC right/doc"
(Created page with "==Description== This template will force the page's table of contents to appear and align it the right. ==Usage== {{TOC right}} Add <code><nowiki>{{TOC right}}</nowiki></code...") |
Margotbean (talk | contribs) (category) |
||
Line 2: | Line 2: | ||
This template will force the page's table of contents to appear and align it the right. | This template will force the page's table of contents to appear and align it the right. | ||
− | == | + | ==Use== |
{{TOC right}} | {{TOC right}} | ||
Add <code><nowiki>{{TOC right}}</nowiki></code> (see result at right). | Add <code><nowiki>{{TOC right}}</nowiki></code> (see result at right). | ||
Line 29: | Line 29: | ||
<noinclude>[[Category:Template documentation]]</noinclude> | <noinclude>[[Category:Template documentation]]</noinclude> | ||
− | <includeonly> | + | <includeonly>[[Category:Templates]]</includeonly> |
− | [[Category: | ||
− | </includeonly> |
Latest revision as of 02:01, 3 September 2020
Description[edit]
This template will force the page's table of contents to appear and align it the right.
Use[edit]
Contents
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. |