Page MenuHomePhabricator

Add WMF domains to $wgNoFollowDomainExceptions
Closed, ResolvedPublic

Description

I don't see any reason why "nofollow" should be added to links to our wikis, it's against ourself.

Note: I think we can add wikimedia.org and include all subdomains; it's easier than selecting and adding them manually and I don't think that spam to wikitech, chapters wikis or whatever is a risk.

To expand (useless details follow if you're not convinced :-p): we should ideally use interwiki links to link our wikis, and that's what we usually do, but:

  1. this isn't always possible, for instance Commons and Meta are multilingual wikis and we often use {{fullurl}} to append a uselang= parameter to links, typically in interproject templates (used on hundreds of thousands articles);
  2. there's still no reason why, if a newbie doesn't know it, a standard link to a Wikimedia project should have a nofollow.

Examples of 1):

  • [[:mw:Help:Magic_words#URL_data]]: {{canonicalurl:Category:Top level}} → <a rel="nofollow" class="external free" href="http://www.mediawiki.org/wiki/Category:Top_level">http://www.mediawiki.org/wiki/Category:Top_level</a>
  • [[:q:it:Cesare Beccaria]]: <a rel="nofollow" class="external text" href="//commons.wikimedia.org/wiki/Category:Cesare_Beccaria?uselang=it">Commons</a> (added through [[:q:it:Template:Interprogetto]], [[:q:it:Template:Interprogetto/CollegamentoUselang]])
  • [[:w:fr:Modèle:Autres projets#Catégorie de Commons]]: <a rel="nofollow" class="external text" href="//commons.wikimedia.org/wiki/Category:Plants?uselang=fr">«&#160;Autres projets&#160;», sur <span>Wikimedia Commons</span></a>

Version: unspecified
Severity: normal

Details

Reference
bz32309

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 12:08 AM
bzimport set Reference to bz32309.
bzimport added a subscriber: Unknown Object (MLST).

$wgNoFollowDomainExceptions is not set on WMF wikis as of now. Might be something like:

$wgNoFollowDomainExceptions = array(
'wikipedia.org',
'wiktionary.org',
'wikimedia.org',
...
);

Tagging shell

$wgNoFollowDomainExceptions = array(
'wikipedia.org',
'wiktionary.org',
'wikimedia.org',
'wikinews.org',
'wiktionary.org',
'wikibooks.org',
'wikispecies.org',
'wikiquote.org',
'wikisource.org',
'wikiversity.org',
'wikimediafoundation.org',
'mediawiki.org',
);

Is that everything?

(In reply to comment #2)

Is that everything?

More than everything: wikispecies.org is not among our domains and you put wiktionary.org two times. :-)

$wgNoFollowDomainExceptions = array(
'wikipedia.org',
'wiktionary.org',
'wikimedia.org',
'wikinews.org',
'wikibooks.org',
'wikiquote.org',
'wikisource.org',
'wikiversity.org',
'wikimediafoundation.org',
'mediawiki.org',
);

Synced on live site:

+
+'wgNoFollowDomainExceptions' => array(
+ 'default' => array(
+ # Original list 20111110 - bug 32309
+ 'mediawiki.org',
+ 'wikibooks.org',
+ 'wikimediafoundation.org',
+ 'wikimedia.org',
+ 'wikinews.org',
+ 'wikipedia.org',
+ 'wikiquote.org',
+ 'wikisource.org',
+ 'wikiversity.org',
+ 'wiktionary.org',
+ ),
+),