Extension:Interlanguage

The Interlanguage extension aims to ease the handling of interlanguage links. From A newer look at the interwiki link:


 * As the Wikimedia projects grow, more articles are written about the same subject in different languages. When one interlanguage link is added in one project it will eventually be added to the other as well. In the case where 20 languages have an article on the same subject, each article should link to 19 other languages, so there are 20*19=380 links to edit and maintain. In case of 100 languages, the number of interlanguage links will amount to nearly 10,000.

Usage
The extension avoid this problem by fetching interlanguage links from another wiki (further: central wiki) whenever a page is saved (or purged). Central wiki may be a separate wiki, or one of the existing wikis. The extension itself need not be installed on the central wiki.

On the central wiki, interlanguage links are maintained the same way they are on any MediaWiki wiki. On wikis with the Interlanguage Extension installed, interlanguage links could now be added by writing , which will fetch all the interlanguage links from the central wiki page "article name". When a new interlanguage link is added to the central wiki, articles on the projects need to be purged in order to update their interlanguage links.

The extension doesn't interfere with usual working of interlanguage links. They may continue to be used in parallel to the extension.

Installation
Copy/paste the source files into your extensions/ directory, then add the following to your LocalSettings.php:

Variable $wgInterlanguageExtensionApiUrl tells the extension where to find MediaWiki API of the central wiki. It is necessary to correctly set this variable, or the extension won't work properly. For example, if you would want to fetch interlanguage links from English Wikipedia (which you may do for testing purposes), the URL should be 'http://en.wikipedia.org/w/api.php '.

Variable $wgInterlanguageExtensionSort selects sort method you want to use for the interwikis. Currently, it recognises four sort methods:
 * 'code': By language code
 * 'alphabetic': By language name
 * 'alphabetic_revised': By language name (alternative)
 * 'none'</tt>: Don't sort. Use the same order as on the central wiki. (default)