Changes

Jump to navigation Jump to search
120 bytes removed ,  21:52, 8 January 2023
no edit summary
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.
   −
==Usage==
+
==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 14: Line 14:  
! description
 
! description
 
|-
 
|-
| <tt>clear</tt>
+
|
| <tt>left</tt><br /><tt>right</tt><br /><tt>both</tt><br /><tt>none</tt>
+
| <samp>noautonum</samp>
| Forces any floating content on the given side to move down below the TOC. The default value is <tt>left</tt>.
+
| Pass these flags as the first argument, like <code><nowiki>{{TOC right|noautonum}}</nowiki></code>. Possible flags:
 +
* <samp>noautonum</samp>: hide the section numbers.
 
|-
 
|-
| <tt>width</tt>
+
| <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''
 
| ''any positive integer''
 
| Set the width of the box.
 
| 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>{{Addlanglinks}}[[Category:Templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>
<includeonly>
  −
[[Category:General wiki templates]]
  −
 
  −
[[de:Vorlage:{{PAGENAME}}]]
  −
[[es:Plantilla:{{PAGENAME}}]]
  −
[[ja:テンプレート:{{PAGENAME}}]]
  −
[[pt:Predefinição:{{PAGENAME}}]]
  −
[[ru:Шаблон:{{PAGENAME}}]]
  −
[[zh:Template:{{PAGENAME}}]]
  −
</includeonly>
 
107,444

edits

Navigation menu