Manual:$wgNamespaceRobotPolicies/de-formal

From Linux Web Expert

Revision as of 08:06, 17 August 2022 by imported>ThisCarthing (Created page with "== Details ==")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

Details

Robot policies for namespaces, e.g. tag <meta name="robots" content="noindex,follow" />

e.g.

$wgNamespaceRobotPolicies[NS_TALK] = 'noindex';

The default policy is given by $wgDefaultRobotPolicy , the array is made of Namespace constants as defined in includes/Defines.php (see Manual:Namespace ) or the numeric identifier for the namespace.

See also