That's more future proof than using the current interwiki system IMO.
Also we already use a subset of that for Wikidata.
On Thu, 2014-01-16 at 22:06 +1100, This, that and the other wrote:
Sorry about the borked line wrapping in the previous
message - I'm
resending it so you can read it properly!
This is a proposal to try and bring order to the messy area of interwiki
linking and interwiki prefixes, particularly for non-WMF users of
At the moment, anyone who installs MediaWiki gets a default interwiki
table that is hopelessly out of date. Some of the URLs listed there
have seemingly been broken for 7 years . Meanwhile, WMF wikis have
access to a nice, updated interwiki map, stored on Meta, that is
difficult for anyone else to use. Clearly something needs to be done.
What I propose we do to improve the situation is along the lines of
1. Split the existing interwiki map on Meta  into a "global
interwiki map", located on MediaWiki.org
(draft at ), and a
"WMF-specific interwiki map" on Meta (draft at ).
Wikimedia-specific interwiki prefixes, like bugzilla:, gerrit:, and
irc: would be located in the map on Meta, whereas general-purpose
interwikis, like orthodoxwiki: and wikisource: would go to the
"global map" at MediaWiki.org
2. Create a bot, similar to l10n-bot, that periodically updates the
default interwiki data in mediawiki/core based on the contents of
the global map. (Right now, the default map is duplicated in two
different formats  which is quite messy.)
3. Write a version of the rebuildInterwiki.php maintenance script 
that can be bundled with MediaWiki, and which can be run by server
admins to pull in new entries to their interwiki table from the
This way, fresh installations of MediaWiki get a set of current, useful
interwiki prefixes, and they have the ability to pull in updates as
required. It also has the benefit of separating out the WMF-specific
stuff from the global MediaWiki logic, which is a win for external users
Two other things it would be nice to do:
* Define a proper scope for the interwiki map. At the moment it is a
bit unclear what should and shouldn't be there. The fact that we
currently have a Linux users' group from New Zealand and someone's
personal blog on the map suggests the scope of the map have not been
well thought out over the years.
My suggested criterion at  is:
"Most well-established and active wikis should have interwiki
prefixes, regardless of whether or not they are using MediaWiki
Sites that are not wikis may be acceptable in some cases,
particularly if they are very commonly linked to (e.g. Google,
* Take this opportunity to CLEAN UP the global interwiki map!
** Many of the links are long dead.
** Many new wikis have sprung up in the last few years that deserve to
** Broken prefixes can be moved to the WMF-specific map so existing
links on WMF sites can be cleaned up and dealt with appropriately.
** We could add API URLs to fill the iw_api column in the database
(currently empty by default).
I'm interested to hear your thoughts on these ideas.
Sorry for the long message, but I really think this topic has been
neglected for such a long time.
PS. I am aware of an RFC on MediaWiki.org
relating to this, but I can't
see that gaining traction any time soon. This proposal would be a more
light-weight way of dealing with the problem at hand.
Wikitech-l mailing list