It depends on the interwiki settings. Some have 'local' [1] enabled, some not.
See the documentation[1]:
iw_local: informs MediaWiki how it should treat interwiki links coming from external sources. If iw_local is 1, then it will treat these links as though they were generated from within the local wiki. For example, the interwiki link fr: on the en.wikipedia.org project has iw_local=1 set. Therefore, the link to http://en.wikipedia.org/wiki/fr:Accueil gracefully redirects you to the French Homepage (Accueil). However, the Wikimedia foundation project site is flagged 0 on en.wikipedia.org; the link to http://en.wikipedia.org/wiki/wikimedia:Home does not work, even though [[wikimedia:Home]] would work if it were on a local Wikipedia page.
http://en.wikipedia.org/wiki/commons:Apple This example works fine, no need for any weird stuff.
http://en.wikipedia.org/wiki/mw:DB This one doesn't and only works when done from within a page (like [[mw:DB]]) becuase iw_local is 0.
I think the Special:Search entry is a bug / undocumented feature in that it ignored the 'local'-setting.
--Krinkle
[1] http://www.mediawiki.org/wiki/Manual:Interwiki_table
Op 19 sep 2010, om 00:34 heeft MZMcBride het volgende geschreven:
Aryeh Gregor wrote:
Right now third-party software can do stuff like <a href="http://en.wikipedia.org/wiki/$1"> and replace $1 by user input, and it will work basically like [[$1]] typed on Wikipedia, and that's good.
http://en.wikipedia.org/wiki/mw:Not_really...
I still don't understand why users (third-party or not) are forced to use links http://en.wikipedia.org/wiki/Special:Search? search=mw:like_this in order to redirect properly.
MZMcBride
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l