Gentlemen, config/index.php has called interwiki.sql and produced table wiki_interwiki as expected. OK, but why won't e.g., [[commons:Bla]] become a blue interwiki link instead of a red local link? Yes I read http://www.mediawiki.org/wiki/Help:Interwiki_linking but feel that as I find the table already exists, I should not need to do anything more.
jidanni@jidanni.org schreef:
Gentlemen, config/index.php has called interwiki.sql and produced table wiki_interwiki as expected. OK, but why won't e.g., [[commons:Bla]] become a blue interwiki link instead of a red local link? Yes I read http://www.mediawiki.org/wiki/Help:Interwiki_linking but feel that as I find the table already exists, I should not need to do anything more.
Can you make sure that the commons: prefix is actually in your interwiki table? Also, for easier handling of the interwiki table, try this extension [1].
Roan Kattouw (Catrope)
[1] http://www.mediawiki.org/wiki/Extension:Special:Interwiki
make sure that the commons: prefix is actually in your interwiki table
Yes, table wiki_interwiki has it, from $ grep commons mediawiki-1.11.0/maintenance/interwiki.sql ('commons','http://commons.wikimedia.org/wiki/$1%27,0),
Also, for easier handling of the interwiki table, try this extension
Can't I use any of the $ wc -l < mediawiki-1.11.0/maintenance/interwiki.sql 173 without dabbling in extensions?
jidanni@jidanni.org schreef:
make sure that the commons: prefix is actually in your interwiki table
Yes, table wiki_interwiki has it, from $ grep commons mediawiki-1.11.0/maintenance/interwiki.sql ('commons','http://commons.wikimedia.org/wiki/$1%27,0),
You grepped the .sql file, but can you check it's actually in the DB? (Using the mysql prompt or PHPMyAdmin.)
Also, for easier handling of the interwiki table, try this extension
Can't I use any of the $ wc -l < mediawiki-1.11.0/maintenance/interwiki.sql 173 without dabbling in extensions?
Yes, but adding them means doing so manually in the database. Not everyone likes to do that, so the Special:Interwiki extension provides a web interface.
Roan Kattouw (Catrope)
Agg. I see. Fresh 1.11 wiki installations have interwiki.sql loaded by default. Installations upgrading to 1.11 do not get it loaded!!
Say, with the default interwiki.sql, do links to non-English Wikipedias always need to be routed thru the English Wikipedia, [[wikipedia:zh:跨性別]]: (the only example format on http://meta.wikimedia.org/wiki/Help:Interwiki_linking that worked on my home wiki.) http://en.wikipedia.org/wiki/zh:%E8%B7%A8%E6%80%A7%E5%88%A5 -> HTTP/1.0 302 Moved Temporarily Location: http://zh.wikipedia.org/wiki/%E8%B7%A8%E6%80%A7%E5%88%A5 Or is there a better way that doesn't need WikiSysop's help? (not to mention altering the database or installing extensions.)
Anyway, without a standard to follow, each installation will come up with their own prefixes: ('zhwikipedia', 'http://zh.wikipedia.org/wiki/$1', 1), ('zhw', 'http://zh.wikipedia.org/wiki/$1', 1),
jidanni wrote:
why won't e.g., [[commons:Bla]] become a blue interwiki link instead of a red local link?
By the same reason it's not on the sidebar at wikimedia wikis.
make sure that the commons: prefix is actually in your interwiki table
Yes, table wiki_interwiki has it, from $ grep commons mediawiki-1.11.0/maintenance/interwiki.sql ('commons','http://commons.wikimedia.org/wiki/$1%27,0),
If that 0 were a 1 it would be in the sidebar instead of inline.
Platonides schreef:
If that 0 were a 1 it would be in the sidebar instead of inline.
That's not true. The trans and local fields do NOT determine whether an interwiki link is treated as a language link. Only interwiki prefixes listed in languages/Names.php are treated as language links.
Roan Kattouw (Catrope)
wikitech-l@lists.wikimedia.org