Extension:MagicNumberedHeadings

From mediawiki.org
Jump to navigation Jump to search
MediaWiki extensions manual
OOjs UI icon advanced.svg
MagicNumberedHeadings
Release status: stable
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
Download
Translate the MagicNumberedHeadings extension if it is available at translatewiki.net
Check usage and version matrix.

The MagicNumberedHeadings extension provides the magic word __NUMBEREDHEADINGS__ to force autonumbering of the headings of a page. I 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 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]