Last modified: 2010-05-15 15:41:09 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 8413 - document $wgNamespaceRobotPolicies better in LocalSettings.php
document $wgNamespaceRobotPolicies better in LocalSettings.php
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.7.x
PC Linux
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-12-28 19:06 UTC by Dan Jacobson
Modified: 2010-05-15 15:41 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Dan Jacobson 2006-12-28 19:06:52 UTC
In DefaultSettings.php you should document this better:

   /**
    * Robot policies for namespaces
    * e.g. $wgNamespaceRobotPolicies = array( NS_TALK => 'noindex' );
    */
   $wgNamespaceRobotPolicies = array();

else one is hard pressed to figure out what other things one can use
other than noindex. The array we can figure out from a nearby hint
about Language.php, but not the choices other than noindex, nor their
effects.

Document them here or say what other .php file to see.

Don't just hope the user will use a search engine or check around
meta.mediawiki.org, as that makes getting this simple answer dependent
on having a working and external network connection, even before
production time (i.e., at mere examining and testing the software
time).

Wait, mention parts of http://meta.wikimedia.org/wiki/Robots.txt like
  The only way to keep a URL out of Google's index is to let Google
  crawl the page and see a meta tag specifying robots="noindex".
  Although this meta tag is already present on the edit page HTML
  template, Google does not spider the edit pages (because they are
  forbidden by robots.txt) and therefore does not see the meta tag.

Wait, SpecialPage.php already has
   $wgOut->setRobotPolicy( "noindex,nofollow" );
so users will wonder why tinkering with NS_SPECIAL is futile.
(Should be noted in bug 8338.)

OK, enough for one day.
Comment 1 Rob Church 2006-12-28 19:09:45 UTC
I would expect that a user installing a piece of web server software and wishing
to enable custom robot policies for specific namespaces ("meta tags") would
either know what options are available, or else be able to research this.
Comment 2 Aryeh Gregor (not reading bugmail, please e-mail directly) 2006-12-28 19:30:26 UTC
Please be concise and to the point in bug reports, not chatty.  If something
occurs to you midway through writing the report, go back and amend it, don't add
it on the end.
Comment 3 Antoine "hashar" Musso (WMF) 2007-01-04 18:48:37 UTC
I added some comments in r18810

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links