Information icon.svg Please vote in the 2017 board of trustees election. The cabal thanks you for your service. There are 6 more days left to vote.

Help:TOC

From RationalWiki
Jump to: navigation, search


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

Removing TOC[edit]

If, for whatever reason, a TOC isn't wanted it can be switched off by including when editing: "__NOTOC__" (that's: "underscore, underscore,N,O,T,O,C,underscore,underscore" meaning NO Table Of Contents). It is usual to put this at the top of the page, it will not show in the page.

Adding TOC manually[edit]

If "__FORCETOC__ "(2 x underscore each side) is used, then a TOC will occur before the first heading even if there are three or fewer headings.

Similarly if "__TOC__" (2 x underscore each side) is used, then a TOC will occur at the point where "__TOC__" is placed even if there are three or fewer headings. You can thus place the TOC at any point vertically or horizontally or in a table cell.

NB: "__TOC__" overrides __NOTOC__".

In a table[edit]

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

{| align="right"
| __TOC__
|}

More on headers & sections.