Jump to content

Extension:NoCat

From mediawiki.org
MediaWiki extensions manual
NoCat
Release status: stable
Implementation Parser extension , MyWiki
Description Allows disabling categories using __NOCAT__
Author(s) Brian Wolff (Bawolfftalk)
Latest version 1.0 (2018-03-26)
MediaWiki 1.25+
PHP 5.4+
Database changes No
License GNU General Public License 2.0 or later
Download
  • $wgNoCatShowCat
Quarterly downloads 0
Translate the NoCat extension if it is available at translatewiki.net

The NoCat extension adds a magic word __NOCAT__ that disables categories on a specific page.

Installation

[edit]
  • Download and move the extracted NoCat folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/NoCat
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'NoCat' );
    
  • Configure as required.
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration parameters

[edit]
$wgNoCatShowCat
Whether to totally disable categories, or only disable adding to categories. If set to false (default), categories are totally disabled for the page. If set to true, the page is not added to any categories, but the list of categories that the page would have been added to is shown at the bottom of the page like normal.