手册:$wgNamespaceRobotPolicies
Appearance
| 机器人方针: $wgNamespaceRobotPolicies | |
|---|---|
| 允许基于每个名字空间自定义机器人方针。 |
|
| 引进版本: | 1.7.0(r14559) |
| 移除版本: | 仍在使用 |
| 允许的值: | (每个条目指示一个名字空间和一个文本字符串) |
| 默认值: | [] |
| 其他设置: 按首字母排序 | 按功能排序 | |
细节
名字空间的机器人方针,例如标记<meta name="robots" content="noindex,follow" />
例如
$wgNamespaceRobotPolicies[NS_TALK] = 'noindex';
The default policy is given by $wgDefaultRobotPolicy, the array is made of 命名空间常量 as defined in includes/Defines.php (see Manual:命名空间) or the numeric identifier for the namespace.