Open main menu

Extension:NumberedHeadings

MediaWiki extensions manual
OOjs UI icon advanced.svg
NumberedHeadings
Release status: stable
Implementation Variable
Description Toggles headings autonumbering
Author(s) Stanislav Pika (Пика Пикаtalk)
Latest version 1.0.0 (2019-03-19)
MediaWiki 1.25+
Database changes No
License GNU General Public License 3.0 or later
Download
README
Translate the NumberedHeadings extension if it is available at translatewiki.net
Check usage and version matrix.

The NumberedHeadings extension toggles headings autonumbering. It is based on the precursing extensions MagicNumberedHeadings and MagicNoNumberedHeadings without breaking any functionality.

UsageEdit

This extension provides tow magic words:

  1. __NUMBEREDHEADINGS__: automatic numbering of the headings in this page is forced, regardless of the user preference settings
  2. __NONUMBEREDHEADINGS__:automatic numbering of the headings in this page is inhibited — again, regardless of the user preference settings
If article contains both magic words, __NUMBEREDHEADINGS__ takes precedence over __NONUMBEREDHEADINGS__.

InstallationEdit

  • Download and place the file(s) in a directory called NumberedHeadings in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'NumberedHeadings' );
    
  •   Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

DevelopmentEdit

Following contributions are welcome (preferably through GitHub):

  • Localizations of the magic words __NUMBEREDHEADINGS__ and __NONUMBEREDHEADINGS__
  • Bug fixes
  • Improvements