Please note that if you have both commands__NOTOC__ and __TOC__ entered on the same page, the TOC will appear.
The Table of contents can be forced onto a floating table on the right hand of the screen with the code below:
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 Community Central to your wiki if you want to use this. Here's how it looks:
If __TOC__ 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.
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.