Page MenuHomePhabricator

Add all global sites as valid interwiki links
Open, LowestPublicFeature

Description

With the introduction of wikidata, there now will be many links in the "global sites" format: "ruwiki + Title". From my IRC conversation, there are plans to migrate interwiki table to the sites table.

As a stopgap measure, and to prevent any accidental conflicts in any namespace/WMF site, please add all globally defined sites such as xxwiki/xxsource/... (not sure which word is used for most of them) to the interwiki table. This will instantly allow all links in the form [[enwiki:Page]] to work on all WMF sites without any ambiguities, and might help a number of javascript gadgets with Wikidata integration.


Version: wmf-deployment
Severity: enhancement

Details

Reference
bz45116

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 1:36 AM
bzimport set Reference to bz45116.
bzimport added a subscriber: Unknown Object (MLST).

With the resolution of bug 7496 this becomes less of an issue, since to link to any site you can now safely use proj:lang:PageName. JavaScript gadgets and the like simply need a small translation table { wiki: 'w', wiktionary: 'wikt', ... }. Namespace name conflicts should not be occurring with these short prefixes (if they are, please file a bug).

Of course, this does not take into account special/chapter wikis, which are a mess - but for Wikidata this is not relevant.

To some extent this is a duplicate of the original request in bug 48035, but I'm going to leave this bug open for now.

TTO lowered the priority of this task from Low to Lowest.Nov 24 2014, 10:28 AM

After some more thought, I think this task this should be closed and potentially reopened if community discussion takes place. While this would be nice to have, it's not clear that it is needed or wanted by the Wikimedia community.

Shouldn't the abbreviated interwiki prefixes be tracked as a new column in mediawiki-core/maintenance/interwiki.sql?

Shouldn't the abbreviated interwiki prefixes be tracked as a new column in mediawiki-core/maintenance/interwiki.sql?

What do you mean?

Well, https://gerrit.wikimedia.org/r/#/c/195464/ and T89546 caught my attention. The issue of interwiki transclusion was forced by the global user page feature, but thinking about it more, I see that the transcluded content has other problems, for example local wiki templates and links are broken as well? I'm not sure it's a good idea to start pointing all "w:" links to English Wikipedia, but as long as we're moving in this direction, perhaps we should add a new column to the interwiki sites table to help standardize these short prefixes?

start pointing all "w:" links to English Wikipedia, but as long as we're moving in this direction

Are we? O_o

Yes, I don't know where you get that idea. Currently w: points to English Wikipedia from all Wikipedias, and to the local-language version of Wikipedia from all non-Wikipedia wikis. We can't alter that, as it would break too many links.

I don't see why this would need to be included in the sites table. As far as I can see, it can be inferred from the other data there.

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 11:14 AM
Aklapper removed a subscriber: wikibugs-l-list.