From mediawiki.org
MediaWiki extensions manual
Release status: unmaintained
Implementation Extended syntax
Description Provides a magic word to force autonumbering of the headings of a page
Author(s) Purodha Blissenbach (Purodhatalk)
Maintainer(s) MarkAHershbergertalk
Latest version 1.13 (2020-08-18)
MediaWiki 1.29+
License GNU General Public License 2.0 or later
Quarterly downloads 0
Translate the MagicNumberedHeadings extension if it is available at translatewiki.net

The MagicNumberedHeadings extension provides the magic word __NUMBEREDHEADINGS__ to force autonumbering of the headings of a page. It was created so as to resolve task T5254.

If an article contains the magic word, automatic numbering of the headings in this page is performed, regardless of the user preference setting.


  • Add __NUMBEREDHEADINGS__ to any page.


  • Download and move the extracted MagicNumberedHeadings folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/MagicNumberedHeadings
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'MagicNumberedHeadings' );
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.