Extension:NoTitle

What can this extension do?
Adds a magic word, __NOTITLE__, that lets you hide the main title heading.

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:

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

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.

MediaWiki 1.16
Rewrite that:
 * Works with MW 1.16
 * 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)