Difference between revisions of "Template:TOC right/doc"
Jump to navigation
Jump to search
m |
Margotbean (talk | contribs) |
||
(8 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | ==Description== | |
− | + | This template will force the page's table of contents to appear and align it the right. | |
− | |||
− | |||
− | |||
− | === | + | ==Use== |
+ | {{TOC right}} | ||
+ | Add <code><nowiki>{{TOC right}}</nowiki></code> (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. | |
− | + | {| class="wikitable" | |
+ | |- | ||
+ | ! parameter | ||
+ | ! valid values | ||
+ | ! description | ||
+ | |- | ||
+ | | | ||
+ | | <samp>noautonum</samp> | ||
+ | | Pass these flags as the first argument, like <code><nowiki>{{TOC right|noautonum}}</nowiki></code>. Possible flags: | ||
+ | * <samp>noautonum</samp>: hide the section numbers. | ||
+ | |- | ||
+ | | <samp>clear</samp> | ||
+ | | <samp>left</samp><br /><samp>right</samp><br /><samp>both</samp><br /><samp>none</samp> | ||
+ | | Forces any floating content on the given side to move down below the TOC. The default value is <samp>right</samp>. | ||
+ | |- | ||
+ | | <samp>width</samp> | ||
+ | | ''any positive integer'' | ||
+ | | Set the width of the box. | ||
+ | |} | ||
− | + | <includeonly>{{Addlanglinks}}[[Category:Templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> | |
− | |||
− | <includeonly>[[Category: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 21:52, 8 January 2023
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. |