Help:TOC

If an article contains more than three headings, a Table Of Contents (TOC) will normally be created automatically.

Suppress automatic numbering
MediaWiki automatically numbers the items in the TOC. To change this behavior, paste the following wherever you want the table to be:

Removing TOC
If, for whatever reason, a TOC isn't wanted, it can be removed (switched off) by including when editing:  (meaning "No table of contents"). It is usually put at the top of the page, although the position in this case hardly makes a difference in the end.

Adding TOC manually
If  is used, then a TOC will occur before the first heading, even if there are three or fewer headings.

Similarly, if  is used, then a TOC will occur at the point where   is placed even if there are three or fewer headings. Thus, you can place the TOC at any point vertically or horizontally or, for example, in a table cell.

NB: "" overrides ".

In a table
The TOC can be forced into a floating table on the right hand of the screen with the code below:

which produces:

For more information, see Help:Sections.