ShoutWiki/Patches/Interwiki

Patch description
MediaWiki's interwiki/interlanguage link handling just plain sucks. Why? Because both interwikis (links to other wikis, such as foo) and interlanguage links (links between the different language versions of the same wiki) are stored in the same table.

Due to this, we cannot add the interwiki table into $wgSharedTables &mdash; that would mean that ShoutWiki Hub's interlanguage links (i.e. fr or fi) would work outside ShoutWiki Hub. Obviously on fi.24, fr: should link to fr.24.shoutwiki.com and not to fr.shoutwiki.com.

To work around these limitations, we have written an extension and patched Special:Interwiki extension code.

The interwiki prefixes will always be fetched from the shared DB, $wgSharedDB. The interwiki table in this database should never be empty! Interlanguage links, such as en, fi or fr will be fetched from local interwiki table. Local interwiki tables can be and in most cases, are empty.

extensions/Interwiki/
ShoutWiki uses the SpecialInterwiki extension for managing interwiki and interlanguage links, so we also had to patch that.

This patch was built against a recent version of the Interwiki extension and should be perfectly up-to-date.