Release status: stable
|Author(s)||Stanislav Pika (Пика Пикаtalk)|
|License||GNU General Public License 3.0 or later|
|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 and replaces now unmaintained extensions MagicNumberedHeadings and MagicNoNumberedHeadings by Purodha Blissenbach, without breaking any functionality.
What does this extension do?
This extension adds magic words
__NONUMBEREDHEADINGS__ to the parser. If an article contains the magic word
__NUMBEREDHEADINGS__, automatic numbering of the headings in this page is forced, regardless of the user preference settings. If the article does not contain this magic word and contains a magic word
__NONUMBEREDHEADINGS__, automatic numbering of the headings in this page is inhibited — again, regardless of the user preference settings. Note: If article contains both magic words,
__NUMBEREDHEADINGS__ takes precedence over
- Download and place the file(s) in a directory called
- 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.
__NONUMBEREDHEADINGS__ to any article to toggle automatic numbered of the headings in this article.
Following contributions are welcome (preferably through GitHub):
- Localizations of the magic words
- Bug fixes