Last modified: 2014-09-30 04:54:15 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T33042, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 31042 - some defaults are wrong when interwiki linking to other domains on the cluster (from at least nyc.wm && ar.wm)
some defaults are wrong when interwiki linking to other domains on the cluste...
Status: RESOLVED FIXED
Product: Wikimedia
Classification: Unclassified
Interwiki links (Other open bugs)
unspecified
All All
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
http://nyc.wikimedia.org/w/index.php?...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-09-20 17:31 UTC by jeremyb
Modified: 2014-09-30 04:54 UTC (History)
7 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description jeremyb 2011-09-20 17:31:38 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%0A﷒3">http://nyc.wikimedia.org/wiki/Special:ExpandTemplates?input=[[%3Aen%3Afoo]]%0D%0A%0D%0A﷒3﷓

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!
Comment 1 jeremyb 2011-11-10 04:23:00 UTC
the fix for bug 29591 should eventually fix this too.
Comment 2 Pete F 2012-01-06 05:27:14 UTC
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.
Comment 3 Nemo 2012-01-06 07:15:10 UTC
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.
Comment 4 This, that and the other (TTO) 2013-11-11 10:49:55 UTC
Gerrit change #94593 will fix the second issue (w: from chapter wikis).
Comment 5 This, that and the other (TTO) 2014-09-30 02:00:07 UTC
(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.
Comment 6 jeremyb 2014-09-30 04:54:15 UTC
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).

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links