Template:TOC

From BESIII Ferrara Group Wiki
Jump to: navigation, search

This template allows you to modify how a TOC looks on a page.

Basic Usage[edit source]

Doing the following will put the TOC into the page wherever you place this code. So you can specify above or below certain text.

{{TOC}}

Making a Right-Aligned TOC[edit source]

{{TOC | align=right }}

Depending on the stuff you have on the page, you may also want to do:

{{TOC | align=right | clear=right }}

Limit TOC so it shows only certain headings[edit source]

Show only "level 2" headings:

{{TOC | limit=2 }}

Show only "level 2" and "level 3" headings:

{{TOC | limit=3 }}

All Options[edit source]

{{TOC
|clear= <!-- right or left,  -->
|width= <!-- example: 300px -->
|align= <!-- right or left -->
|limit= <!-- which size headers to allow, e.g. 2,3,4,5 ... -->
}}