Help:Interlanguage links

From Wikimedia Commons, the free media repository
Jump to: navigation, search

Interlanguage links sometimes called interwiki links, are links from any page (most notably articles) in one Wikipedia language to one or more nearly equivalent or exactly equivalent pages in another Wikipedia language, between language versions of Wiktionary, and the same within Wikisource, Wikiquote, and Wikibooks.

The interlanguage links on Commons produce links to the Wikipedias. This is not reciprocal: Wikipedias do not support interlanguage links to Commons, but often use templates like {{Commons}} and {{Commons category}}.

Interlanguage links are a form of interwiki links.

Syntax[edit]

The interlanguage links have traditionally taken the following form:

[[language code:Title]]

where the language code is the two-letter code as per ISO 639-1. (See Complete list of language Wikipedias available. English is "en", German is "de", etc.) So for example Commons Gallery Plankton might have interlanguage links which look like this:

[[ar:عوالق]]
[[de:Plankton]]
[[en:Plankton]]
[[eo:Planktono]]
[[es:Plancton]]
[[fr:Plancton]]
[[nl:Plankton]]
[[ja:プランクトン]]
[[ko:플랑크톤]]
[[pl:Plankton]]
[[ru:Планктон]]
[[simple:Plankton]]
[[zh:浮游生物界]]

These links are treated specially, and don't show up in the body of the text, but in a special sidebar section "in Wikipedia" listed by language name. Technically they could go anywhere in the article source; placement does not alter the visual appearance of the links on the rendered page except for the order. However, the convention has been to put them at the bottom of the wikitext.

Similar code was repeated in each of the corresponding Wikipedia articles. Maintaining this took a lot of work (mostly automated). A central repository for these links was created in late 2012, called Wikidata, and from early 2013, Wikipedia projects began transforming and moving their interwiki links there. Commons was initially not supported by Wikidata, and interwiki blocks could no longer be directly transferred from Wikipedia to Commons (workaround here), leading Commons interwiki links to become increasingly outdated. Wikidata support for Commons was enabled in September 2013, but there are still some difficulties with this (see below).

Namespaces[edit]

Interlanguage links can be added to pages in almost any namespace and in general should point to pages in the same namespace in the Wikipedias. The major exception is category namespace on Commons which often have Interlanguage links to Wikipedia articles. Fore more info see table below.

Commons namespaces Link to Wikipedia namespace
0 Gallery Article
Talk All talk pages should not be linked
2 User User
4 Commons Wikipedia
6 File No links
8 MediaWiki No links
10 Template Template
12 Help Help
14 Category Category
Article
100 Creator No links
102 TimedText No links
104 Sequence No links
106 Institution No links

NOTE: Wikidata linking was enabled for Commons in September 2013. However it does not support multiple links to a single Wikipedia page, as can occur when both a gallery and a category link to the same Wikipedia article, so the old interwiki syntax still needs to be used in one of the Commons pages.

Bot Maintenance[edit]

Various bots, many based on Pywikipediabot interwiki.py code, added and attempted to correct interlanguage links: if Commons links to A and A to B, than bot will add a link to B to Commons. A downside of this approach was that an error in an interlanguage link in one Wikipedia propagates to other Wikipedias. Thus if a bot produces a wrong result one might have to search for the underlying error in another language version of Wikipedia.

If interwiki bots persistently add an interwiki link that human editors consider wrong, it is no use revert-warring against the bots: they won't understand and will always add the link back in. A simple solution is not to remove the offending link, but to enclose it in html comment marks ("<!-- [[ex:Example]] -->"). The bots understand this convention and will not re-add a link marked in this way.

The old interwiki bots have generally ceased operation since Wikidata was launched, although several bots and semi-automated gadgets are being used to populate Wikidata.

See also[edit]

External links[edit]