Extension talk:MagicNoNumberedHeadings

=Install Problems=

On our Wiki the extension does not work.

The following message is emmitted if ini_set('display_errors', 1); will be added to LocalSettings.php:

We use:

Version:


 * MediaWiki: 1.9.2
 * PHP: 5.2.0 (apache2handler)
 * MySQL: 5.0.26

Extensions

Solution (works for me): Replace MAG_NONUMBEREDHEADINGS by 'MAG_NONUMBEREDHEADINGS' in the MagicNoNumberedHeadings.php file where the word is not between single quotes.

NONUMBEREDHEADINGS ignores the and the  tags. If written in one of these, the headings aren't numbered.

-I made the change above (added quotes around MAG_NONUMBEREDHEADINGS) and didnt' receive any errors, but the extension didn't work--the TOC heading numbers were still there. I am using MediaWiki version 1.16.4. Did anybody else get this to work with the latest MediaWiki version? Lost Student

Variant that worked for me:

Magic Word is Displayed
Installed and running, no problems, headings are removed. However the magic word is visible in the article.

Product	Version
 * MediaWiki	1.21.1
 * PHP	5.5.0 (cgi-fcgi)
 * MySQL	5.0.24-community-nt-log

The matchandremove function appears to be failing to spot it. --Hoggle42 (talk) 09:39, 26 February 2014 (UTC)

You have to add & to the parameters of the function MagicNoNumberedHeadingsParserBeforeInternalParse


 * that did it, thanks, mysterious stranger :) --Hoggle42 (talk) 15:12, 23 October 2014 (UTC)