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) User:MarkAHershbergertalk
Latest version 1.13 (2020-08-18)
MediaWiki 1.29+
License GNU General Public License 2.0 or later
Download
Hooks used
  • ParserBeforeInternalParse
  • MagicWordwgVariableIDs
  • MagicWordMagicWords
Quarterly downloads 5 (Ranked 165th)
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

  • Add __NUMBEREDHEADINGS__ to any page.

Installation

  • 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 file:
    wfLoadExtension( 'MagicNumberedHeadings' );
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

See also

This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.