MediaWiki extensions manual
NoTitle
Release status: stable
Implementation Extended syntax
Description Adds a magic word that lets you hide the main title heading
Author(s)
  • Carlo Cabanilla,
  • Tony Boyles,
  • Kunal Mehta
Latest version 0.4.0 (2018-07-16)
MediaWiki 1.29+
PHP 5.5+
Database changes No
License GNU General Public License 3.0 or later
Download
Example sandbox.semantic-mediawiki.org
Hooks used
  • GetDoubleUnderscoreIDs
  • OutputPageParserOutput
Quarterly downloads 165 (Ranked 62nd)
Translate the NoTitle extension if it is available at translatewiki.net

The NoTitle extension adds a magic word, __NOTITLE__, that lets you hide the main title heading on any page.

Usage

Add __NOTITLE__ behaviour switch on any pages where you want to hide the title. [1]

{{DISPLAYTITLE:newtitle}} works for any page.

Installation

  • Download and place the file(s) in a directory called NoTitle in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'NoTitle' );
    $wgRestrictDisplayTitle = false;
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

To users running MediaWiki 1.30 or earlier:

The instructions above describe the new way of installing this extension using wfLoadExtension(). If you need to install this extension on these earlier versions (MediaWiki 1.30 and earlier), instead of wfLoadExtension( 'NoTitle' );, you need to use:

require_once "$IP/extensions/NoTitle/NoTitle.php";

Notes

  1. This extension will work for any skin that puts the title heading in an <h1> with class="firstHeading", including the default Vector skin.

See also

  • How to hide the Main Page title - Manual for hiding only the Main Page title.
  • Extension:HideTitle
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.