Open main menu
This page is a translated version of the page Extension:CategoryIndexingControl and the translation is 57% complete.

Other languages:
English • ‎español • ‎中文 • ‎日本語
MediaWiki扩展手册
OOjs UI icon advanced.svg
CategoryIndexingControl
发布状态: 稳定版
实现 Parser extension
描述 Applies a noindex robot policy to pages in specified categories.
作者 Nathan Larson (Leucostictetalk)
最新版本 1.0.0 (2013-12-23)
MediaWiki 1.23+
PHP 5.3+
数据更新
许可协议 GNU General Public License 2.0 or later
下载
参数
$wgNoIndexCategories
使用的钩子
OutputPageBeforeHTML
翻译CategoryIndexingControl扩展如果在translatewiki.net可用
检查使用和版本矩阵。

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

安装

  • Download文件,并将其放置在您extensions/文件夹中的CategoryIndexingControl目录内。
  • 将下列代码放置在您的LocalSettings.php的底部:
    require_once "$IP/extensions/CategoryIndexingControl/CategoryIndexingControl.php";
    
  •   完成 – 在您的wiki上导航至Special:Version,以验证扩展已成功安装。

配置

$wgNoIndexCategories

示例:

$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.