r37966 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r37965‎ | r37966 | r37967 >
Date:17:53, 23 July 2008
Author:simetrical
Status:old
Tags:
Comment:
Documentation: note that $wgNamespaceRobotPolicies can't change the default for NS_SPECIAL.
Modified paths:
  • /trunk/phase3/includes/DefaultSettings.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/DefaultSettings.php
@@ -2800,9 +2800,14 @@
28012801 $wgDefaultRobotPolicy = 'index,follow';
28022802
28032803 /**
2804 - * Robot policies per namespaces.
2805 - * The default policy is given above, the array is made of namespace
2806 - * constants as defined in includes/Defines.php
 2804+ * Robot policies per namespaces. The default policy is given above, the array
 2805+ * is made of namespace constants as defined in includes/Defines.php. You can-
 2806+ * not specify a different default policy for NS_SPECIAL: it is always noindex,
 2807+ * nofollow. This is because a number of special pages (e.g., ListPages) have
 2808+ * many permutations of options that display the same data under redundant
 2809+ * URLs, so search engine spiders risk getting lost in a maze of twisty special
 2810+ * pages, all alike, and never reaching your actual content.
 2811+ *
28072812 * Example:
28082813 * $wgNamespaceRobotPolicies = array( NS_TALK => 'noindex' );
28092814 */

Status & tagging log