Manual:$wgNamespaceRobotPolicies/zh

From Linux Web Expert

Revision as of 01:16, 6 December 2023 by imported>FuzzyBot (Updating to match new version of source page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<translate> Robot policies</translate>: $wgNamespaceRobotPolicies
允许基于每个名字空间自定义机器人方针。
<translate> Introduced in version:</translate>1.7.0 (r14559)
<translate> Removed in version:</translate><translate> still in use</translate>
<translate> Allowed values:</translate>(每个条目指示一个名字空间和一个文本字符串)
<translate> Default value:</translate>[]

细节

名字空间的机器人方针,例如标记<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.

參見