Jump to content

Extension:NoTocNum

From mediawiki.org
MediaWiki extensions manual
NoTocNum
Release status: stable
Implementation Extended syntax
Description Allows hiding automatic the toc numbering using __NOTOCNUMBERS__.
Author(s) Gota de agua (gota de aguatalk)
Latest version 2.0 (2026-06-04)
MediaWiki >= 1.35
PHP 8.2+
Database changes No
$wgNoTocNumEnableSpecialPages
Licence GNU General Public License 2.0 or later
Download

NoTocNum is a extension that allows hide automatic toc numbering using the magic word __NOTOCNUMBERS__.

The magic word can be use in any page, also allow apply in special pages using $wgNoTocNumEnableSpecialPages

Installation

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

Configuration

[edit]
Name Default Description
$wgNoTocNumEnableSpecialPages
false
Allow hide the the toc numbering of the special pages