Extension:ForceTocOnEveryPage

From MediaWiki.org
Jump to navigation Jump to search
Other languages:
English • ‎español • ‎polski • ‎中文 • ‎日本語 • ‎한국어
MediaWiki extensions manual
OOjs UI icon advanced.svg
ForceTocOnEveryPage
Release status: stable
Implementation Tag
Description Forces a table of contents to be displayed on every page.
Author(s) Jmkim dot com
Latest version 2.0 (2019-05-05)
MediaWiki 1.31+
Database changes No
License GNU General Public License 2.0
Download
Example zetawiki.com
Check usage and version matrix.

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.

Installation[edit]

  • Download, extract and place the file(s) in a directory called ForceTocOnEveryPage in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'ForceTocOnEveryPage' );
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

See also[edit]