TTO has uploaded a new change for review. https://gerrit.wikimedia.org/r/144264
Change subject: Add a complete list of local interwikis ...................................................................... Add a complete list of local interwikis Last time I tried this, it broke things. But bug 61357 and bug 64167 have since been fixed, so we should have a better run this time. This patch will fix no fewer than four (admittedly somewhat duplicative) bug reports. Bug: 954 Bug: 4591 Bug: 5197 Bug: 12330 Change-Id: I2cbf83da85ba797d61f651cfd539670a55f53e80 --- M wmf-config/InitialiseSettings.php 1 file changed, 56 insertions(+), 3 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config refs/changes/64/144264/1 diff --git a/wmf-config/InitialiseSettings.php b/wmf-config/InitialiseSettings.php index 2854d8b..8c8bc61 100644 --- a/wmf-config/InitialiseSettings.php +++ b/wmf-config/InitialiseSettings.php @@ -153,9 +153,62 @@ ), # @} end of wgLanguageCode -'wgLocalInterwiki' => array( - 'default' => '$lang', - 'mediawikiwiki' => 'mw', +'wgLocalInterwikis' => array( + 'default' => array( '$lang' ), + + # Chinese projects seem to have some extras + '+zhwiki' => array( 'zh-cn', 'zh-tw' ), + '+zhwikibooks' => array( 'zh-cn', 'zh-tw' ), + '+zhwikinews' => array( 'zh-cn', 'zh-tw' ), + '+zhwikiquote' => array( 'zh-cn', 'zh-tw' ), + '+zhwikisource' => array( 'zh-cn', 'zh-tw' ), + '+zhwikivoyage' => array( 'zh-cn', 'zh-tw' ), + '+zhwiktionary' => array( 'zh-cn', 'zh-tw' ), + + # Danish and Norwegian aliases (bug 4591) + '+dawiki' => array( 'dk' ), + '+dawikibooks' => array( 'dk' ), + '+dawikiquote' => array( 'dk' ), + '+dawikisource' => array( 'dk' ), + '+dawiktionary' => array( 'dk' ), + '+nowiki' => array( 'nb' ), + '+nowikibooks' => array( 'nb' ), + '+nowikinews' => array( 'nb' ), + '+nowikiquote' => array( 'nb' ), + '+nowikisource' => array( 'nb' ), + '+nowiktionary' => array( 'nb' ), + + # Other individual wikis with additional local prefixes + '+enwiki' => array( 'w' ), + '+enwikibooks' => array( 'b' ), + '+enwikinews' => array( 'n' ), + '+enwikiquote' => array( 'q' ), + '+enwikisource' => array( 's' ), + '+enwikiversity' => array( 'v' ), + '+enwikivoyage' => array( 'voy' ), + '+enwiktionary' => array( 'wikt' ), + + # Chapter sites... + '+wikimedia' => array( 'wm$lang' ), + # ...with some stupid exceptions (still-open chapter wikis that have been + # superseded by a non-WMF-hosted chapter site) + 'arwikimedia' => array( '$lang' ), + 'ilwikimedia' => array( '$lang' ), + + # Special wikis with local prefixes that don't match the DB name + # (use + where the portion of the DB name before 'wiki' is also a valid + # local interwiki) + 'betawikiversity' => array( 'betawikiversity' ), + '+commonswiki' => array( 'c' ), + '+foundationwiki' => array( 'wmf', 'wikimedia' ), + 'mediawikiwiki' => array( 'mw', 'mediawikiwiki' ), + '+metawiki' => array( 'm', 'metawikipedia' ), + '+outreachwiki' => array( 'outreachwiki' ), + 'sourceswiki' => array( 'mul', 'oldwikisource' ), + '+wikidatawiki' => array( 'd' ), + 'wikimania2013wiki' => array( 'wm2013' ), + 'wikimania2014wiki' => array( 'wm2014' ), + 'wikimania2015wiki' => array( 'wm2015' ), ), # wgLocaltimezone @{ -- To view, visit https://gerrit.wikimedia.org/r/144264 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I2cbf83da85ba797d61f651cfd539670a55f53e80 Gerrit-PatchSet: 1 Gerrit-Project: operations/mediawiki-config Gerrit-Branch: master Gerrit-Owner: TTO <at.li...@live.com.au> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits