Interwiki and Interlanguage Links

From Biowikifarm Metawiki
Revision as of 16:18, 16 June 2014 by JeanPascalMilcent (Talk | contribs) (Created page with "== How manage interwiki language links between Biowikifarms mediawikis ? == === Problem === The interwiki table is shared between the different mediawiki installations, there...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

How manage interwiki language links between Biowikifarms mediawikis ?

Problem

The interwiki table is shared between the different mediawiki installations, there are two links named "fr" and "en". For now (04-06-2014), these links use the url of plantnet (http://uses.plantnet-project.org/fr/$1 and http://uses.plantnet-project.org/en/$1). Then, if you put a language link into your wiki, it will use the interwiki link for plantnet.

To solve the problem, we need to use different interwiki tables for each mediawiki where you'll put the correct language interwiki links.

In CommonSettings by default, we make the interwiki table global (i.e. the table that really belongs to metawiki is used by all wikis, which then ignore their local table). See http://www.mediawiki.org/wiki/Manual:$wgSharedTables

How to fix

Copy the $wgSharedTables from commonsettings into localsettings, AFTER the commonsettings inclusion. Then remove the interwiki table name from the values of $wgSharedTables in LocalSettings. Now this wiki will use its own table and no longer use the metawiki one.

Now you can set the interwiki language links locally.