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) User:MarkAHershbergertalk
Latest version 1.13 (2020-08-18)
MediaWiki 1.29+
License GNU General Public License 2.0 or later
Quarterly downloads 8 (Ranked 172nd)
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 place the file(s) in a directory called MagicNumberedHeadings in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php :
    wfLoadExtension( 'MagicNumberedHeadings' );
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

See also[edit]