Extension:ForceTocOnEveryPage

The ForceTocOnEveryPage extension forces a table of contents to be displayed on every page except on main page, in edit mode, and within special namespaces.

Download
You can download the php file from https://raw2.github.com/jmnote/mediawiki/master/ForceTocOnEveryPage.php or copy and paste the code below to the file: . ''Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php''.

Installation
To install this extension, add the following to LocalSettings.php: