Extension:CategoryIndexingControl

From MediaWiki.org
Jump to navigation Jump to search

Other languages:
English • ‎español • ‎中文 • ‎日本語
MediaWiki extensions manual
OOjs UI icon advanced.svg
CategoryIndexingControl
Release status: stable
Implementation Parser extension
Description Applies a noindex robot policy to pages in specified categories.
Author(s) Nathan Larson (Leucostictetalk)
Latest version 1.0.0 (2013-12-23)
MediaWiki 1.23+
PHP 5.3+
Database changes No
License GNU General Public License 2.0 or later
Download
Parameters
$wgNoIndexCategories
Hooks used
OutputPageBeforeHTML
Translate the CategoryIndexingControl extension if it is available at translatewiki.net
Check usage and version matrix.

The CategoryIndexingControl applies a noindex robot policy to pages in specified categories.

Installation[edit]

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

Configuration[edit]

$wgNoIndexCategories[edit]

Example:

$wgNoIndexCategories = array( 'Category:Abby', 'Category:Aubry', 'Category:Emilee' );

After having set the configuration setting in that manner, one would need only to add pages to those categories in order to have noindex applied to those pages.