Last modified: 2014-09-30 04:54:15 UTC
some defaults are wrong when interwiki linking to other domains on the cluster (on at least nyc.wm && ar.wm) > [[:en:foo]] > > [[w:foo]] renders as > <p><a href="http://en.wikimedia.org/wiki/foo" class="extiw" title="en:foo">en:foo</a> > </p><p><a href="http://nyc.wikipedia.org/wiki/foo" class="extiw" title="w:foo">w:foo</a></p> %3Aen%3Afoo]]%0D%0A%0D%0A3">http://nyc.wikimedia.org/wiki/Special:ExpandTemplates?input=[[%3Aen%3Afoo]]%0D%0A%0D%0A3 Neither of those domains exist: $ host en.wikimedia.org Host en.wikimedia.org not found: 3(NXDOMAIN) $ host nyc.wikipedia.org Host nyc.wikipedia.org not found: 3(NXDOMAIN) Hack that I found to workaround this: http://nyc.wikimedia.org/w/index.php?title=Home&curid=1&diff=395&oldid=274 (i now see this was already mentioned @ [[m:Help:Interwiki linking]]) < jeremyb> is http://www.mediawiki.org/wiki/Manual:$wgLanguageCode in anyway related to the default language for interwiki links? < jeremyb> e.g. if i do [[w:foo]] from commons it takes me to enwikip. from dewikiquote it takes me to dewikip. (or at least that's how it should work AFAIK) < jeremyb> see preview: http://nyc.wikimedia.org/wiki/Special:ExpandTemplates?input=%5B%5Bw:foo%5D%5D < jeremyb> also broken: http://ar.wikimedia.org/wiki/Special:ExpandTemplates?input=%5B%5Bw:foo%5D%5D < jeremyb> maybe related to special.dblist membership? < jeremyb> (i see commons has it) < jeremyb> wow, wgNamespacesWithSubpages is confusing in the cluster InitialiseSettings.php!
the fix for bug 29591 should eventually fix this too.
It appears that the [[wikipedia:…]] construction doesn't have the same problem as the [[w:…]] construction. I have no idea why not though. If nothing else, this makes for a fairly simple workaround.
I don't know if and how this can be fixed, but using those interwikis from that wiki is semantically incorrect: on Wikimedia projects, one-letter project interwikis and language-code interwikis mean "that project in this language" and "this project in that language", see also <https://meta.wikimedia.org/w/index.php?title=Talk:Interwiki_map&oldid=3214632#Shorthands_for_full_prefixes.3F>. Also, brion said elsewhere that you shouldn't rely on things like w: pointing to the English Wikipedia by default because they could break at any time.
Gerrit change #94593 will fix the second issue (w: from chapter wikis).
(In reply to jeremyb from comment #0) > > [[:en:foo]] Don't use this. The chapter wiki interwiki setup is pretty stuffed, and we're not going to attempt to fix this. To link to a chapter wiki, use [[wmXX:]], e.g. [[wmnyc:]]. This half of the bug is a WONTFIX. > > [[w:foo]] Now works.
for the record, here's the new expansion of comment 0's example: > <p><a href="//en.wikimedia.org/wiki/foo" class="extiw" title="en:foo">en:foo</a> > </p><p><a href="//en.wikipedia.org/wiki/foo" class="extiw" title="w:foo">w:foo</a></p> (In reply to This, that and the other (TTO) from comment #5) > (In reply to jeremyb from comment #0) > > > [[w:foo]] > > Now works. great, thanks. > > > [[:en:foo]] > > Don't use this. The chapter wiki interwiki setup is pretty stuffed, ok. I don't necessarily think this should be made to work as originally expected. especially given comment 3. but I don't think we should leave it as is either. if it's broken then let's remove it from the interwiki table entirely. (so links to [[:en:foo]] would be redlinks just like [[:qqq:foo]] already is redlink).