Browse Tag by Article

Advent calendar 17: Moving the table of contents

17-Advent-Calendar-Move-table-of-contents

In MediaWiki and BlueSpice the table of contents will be shown at the very beginning of an article, when there are more than three headings. If you want to place it somewhere else, choose a position in the text and insert __TOC__ to display it right there. The same command will also force to display the table of content, even if there are less then four headings in the article. If you use __TOC__ several times in the text, it will ony appear at the first word’s position.
In the other case, if you don´t want a table of contents, meantion __NOTOC__ somewhere in your wiki code and it won´t be displayed, no matter how much headings you used. __TOC__ overrides the __NOTOC__ command, if you are using both in one article.

Advent calendar 5: Hide the table of content

5-Advent-Calendar-Hide-table-of-content

If there are more than two headings, the wiki will automatically show a table of content at the beginning of an article.  You don’t want the system to display this index?

Then put __NOTOC__ at the beginning or end of the article in the wiki code and there won’t be a table of content anymore.