Jump to content
MediaWiki

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 (Bawolff talk )
Latest version 1.0 (2018年03月26日)
MediaWiki 1.25+
PHP 5.4+
Database changes No
  • $wgNoCatShowCat
Licence GNU General Public License 2.0 or later
Download
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:
    cdextensions/
    gitclonehttps://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.

AltStyle によって変換されたページ (->オリジナル) /