扩展:CategoryIndexingControl

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Extension:CategoryIndexingControl and the translation is 62% complete.
Other languages:
Deutsch • ‎English • ‎Türkçe • ‎español • ‎français • ‎中文 • ‎日本語
MediaWiki扩展手册
OOjs UI icon advanced.svg
CategoryIndexingControl
发布状态: 未维护
实现 解析器扩展
描述 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通用公眾授權條款2.0 or later
下载
$wgNoIndexCategories
检查使用和版本矩阵。

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

安装

  • 下载文件,并将其放置在您extensions/文件夹中的CategoryIndexingControl目录内。
  • 将下列代码放置在您的LocalSettings.php的底部:
    require_once "$IP/extensions/CategoryIndexingControl/CategoryIndexingControl.php";
    
  • Yes 完成 – 在您的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.