Extension:MagicNumberedHeadings

From mediawiki.org
MediaWiki extensions manual
MagicNumberedHeadings
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
Download
Quarterly downloads 2 (Ranked 148th)
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.

Usage[edit]

  • Add __NUMBEREDHEADINGS__ to any page.

Installation[edit]

  • 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.