Extension:MagicNumberedHeadings

From Linux Web Expert

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) MarkAHershberger
Latest version 1.13 (2020-08-18)
MediaWiki 1.29+
License GNU General Public License 2.0 or later
Download
Quarterly downloads Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Public wikis using Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
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 <translate> task <tvar name=1>T5254</tvar></translate>.

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

  • <translate> [[<tvar name=2>Special:ExtensionDistributor/MagicNumberedHeadings</tvar>|Download]] and move the extracted <tvar name=name>MagicNumberedHeadings</tvar> folder to your <tvar name=ext>extensions/</tvar> directory.</translate>
    <translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/MagicNumberedHeadings
  • <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
    wfLoadExtension( 'MagicNumberedHeadings' );
    
  • File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>