Help:Table of contents

Any article with more than three headings will automatically generate a table of contents.

Position
The TOC appears just before the first heading.

You can change that by typing  in the place on the page where you want it to appear.

To align a TOC to the right, you can place it in a right-aligned table, such as:

Hiding the TOC
Type  and   on the same page, the TOC will appear.

Showing a TOC for pages with fewer than three headings
Just use to place the TOC in a specific place.

Other formats
If you don't want the usual format of the TOC, you can disable the automatic TOC using  and then add a manual TOC instead. This is often done to link to alphabetised sections. For example, if you want to link to 26 sections lettered A to Z, you can use a Compact TOC which is a special template used instead of the standard TOC.

You can copy the Compact TOC template from the Central Wikia to your wiki if you want to use this. Here's how it looks:

Multiple TOCs on one page
If is used multiple times, only the first occurrence causes a ToC to appear. If you want extra ones, you will need to add them manually, using a template like CompactTOC.

Hiding some headings from the TOC
The Table of Contents (TOC) automatically includes all headings. If you don't want a heading to appear, you could hide the TOC using and add a manual TOC instead, or you could make one of the headings a false heading by using Heading  instead of ==Heading==.

Showing and hiding the TOC
You can click the show/hide link to expand or collapse the TOC. By default, logged in users see the TOC shown by default and unregistered users see the TOC collapsed by default. When you click show or hide, the wiki will remember your preference and do the same for the next page you visit.