Manual:$wgArticleRobotPolicies/zh

From Linux Web Expert

<translate> Robot policies</translate>: $wgArticleRobotPolicies
Allow customisation of robot policies on a per-page basis.
<translate> Introduced in version:</translate>1.11.0 (r22615)
<translate> Removed in version:</translate><translate> still in use</translate>
<translate> Allowed values:</translate>(each entry indicates a page name and a text string)
<translate> Default value:</translate>[]

详情

Allows you to set the robot policies for specific pages.

Example

To get the meta element <meta name="robots" content="noindex,follow" /> for "Main Page" you will need to set:

$wgArticleRobotPolicies = [
    'Main Page' => 'noindex'
];


参阅