Extension:NoTitle

Adds a magic word, __NOTITLE__, that lets you hide the main title heading on any page.

Usage
Just put __NOTITLE__ on any pages where you want to hide the title. This extension will work for any skins that puts the title heading in an  with , including the default MonoBook skin.

Installation
Create a file in your extensions directory called  with the following code:

MediaWiki 1.16, 1.18, 1.19
Note: The following modified code works for 1.18. The original code by the author does not work for 1.18 anymore.

Modifications from original code:
 * Works with MW 1.16 and 1.17 (and 1.18, tested) 1.19 tested also
 * Doesn't disable the parser cache
 * Doesn't search for the magic word itself, since the parser already does that
 * hides the subhead (redirected from notice etc.)
 * works better with the other included skins (it doesn't hide the title on modern, because that would look weird)

Changes to LocalSettings.php
Add the following line to your  file in the wiki root:

GuMax Fix
The following is needed if you're using GuMax skins:

Replace with

Other versions
This method (original code by author) does not work for 1.18 (see above for that version):

MediaWiki 1.10

 * On some MW 1.10 servers the above code will not work, please try using the following instead in such cases:

MediaWiki 1.11
Broken on MediaWiki 1.11 due to this addition:

"Throw a showstopper exception when a hook function fails to return a value. Forgetting to give a 'true' return value is a very common error which tends to cause hard-to-track-down interactions between extensions."

You can fix this by adding "Return True;" to the end of addMagicWordId. It will no longer spew PHP errors... However, it doesn't seem to work anymore, either.

You can remove the "Main Page" title on the front page by including the following in MediaWiki:common.js

In many cases, this bypasses the need for the extension.

MediaWiki 1.13 - 1.15
This code is a slight modification so that it works with MediaWiki 1.13. It fixes mainly the no return true bug in the 1.10 version, the not-a-constant bug in the original, and also the variable-not-defined in the original in the hideTitle function. The check for $action not being 'edit' or 'submit' was removed.