Difference between revisions of "Template:TOC right/doc"
Jump to navigation
Jump to search
Margotbean (talk | contribs) (Trying to figure out why this template is listed as uncategorized...) |
Pathoschild (talk | contribs) (update and expand) |
||
Line 1: | Line 1: | ||
− | + | ==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> (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 | ||
+ | |- | ||
+ | | <tt>clear</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>left</tt>. | ||
+ | |- | ||
+ | | <tt>width</tt> | ||
+ | | ''any positive integer'' | ||
+ | | Set the width of the box. | ||
+ | |- | ||
+ | | <tt>classes</tt> | ||
+ | | ''any CSS classes'' | ||
+ | | Change the appearance with CSS classes. Supported classes: | ||
+ | * <tt>noautonum</tt>: hide the section numbers. | ||
+ | |} | ||
− | + | <noinclude>[[Category:Template documentation]]</noinclude> | |
+ | <includeonly> | ||
+ | [[Category:General wiki templates]] | ||
− | + | [[de:Vorlage:{{PAGENAME}}]] | |
− | |||
− | |||
[[es:Plantilla:{{PAGENAME}}]] | [[es:Plantilla:{{PAGENAME}}]] | ||
[[ja:テンプレート:{{PAGENAME}}]] | [[ja:テンプレート:{{PAGENAME}}]] | ||
[[pt:Predefinição:{{PAGENAME}}]] | [[pt:Predefinição:{{PAGENAME}}]] | ||
[[ru:Шаблон:{{PAGENAME}}]] | [[ru:Шаблон:{{PAGENAME}}]] | ||
− | [[zh:Template:{{PAGENAME}}]]</includeonly> | + | [[zh:Template:{{PAGENAME}}]] |
+ | </includeonly> |
Revision as of 15:14, 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 |
---|---|---|
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. |
classes | any CSS classes | Change the appearance with CSS classes. Supported classes:
|