Help:Interwiki linking
This is a copy of the master help page at m:Help:Interwiki linking. Do not edit this page. Edits will be lost in the next update from the master page. Either edit the master help page for all projects at Meta, or edit the project-specific text at Template:Ph:Interwiki linking. You are welcome to copy the exact wikitext from the master page at Meta and paste it into this page at any time.
General
[edit]By adding a prefix to another project, internal link style ("prefixed internal link style") can be used to link to a page of another project. For example, [[wikipedia:interwiki]]
links to the wikipedia:interwiki article on the English Wikipedia. This is called interwiki. For each project, an interwiki map (a list of target projects with their prefixes) is specified (example). These target projects need not use MediaWiki and need not even be a wiki.
A project's own namespace prefix can not be reused as code for an external project. However, the prefix used for a target project may coincide with the prefix for a project namespace within that project. As a result, to link to a page in that namespace, use the same prefix twice, e.g. en:Wikisource:Wikisource:Scriptorium.
For portability across projects, one may want to select a link code that leads to the same target from all projects, e.g. MetaWikipedia:wikibooks:Main Page. The "superfluous" "MetaWikipedia:" prevents "wikibooks:" to be interpreted as namespace prefix when the code is used at wikibooks itself, while at Meta the "MetaWikipedia:" is ignored (it is not a namespace prefix, and even at Meta itself it is recognized as code for Meta). The codes above work from all projects. However, the existence detection and the self-link feature do not work on interwiki links.
Interlanguage link (software feature)
[edit]For a multilingual family of similar projects, with one project per language, a system for interlanguage linking can be set up. If this project is in a family for which this applies, Help:Interlanguage link demo may demonstrate what is explained below (this depends on whether the same language codes are used).
An interwiki link within the family is treated differently (unless it is on a talk page of any namespace): it appears at one or two edges of the webpage (left in Monobook, and top and bottom in Classic). To make it inline, prefix a colon (e.g. [[:en:wiki|wiki]]).
The link label depends only on the sister project that is linked to, not on the linked page. The label is set in the configuration of the project. Typically, it is the name of the language written in that language. The target is only shown in the status bar, depending on the browser (oddly, there is not even a hover box).
Thus, interlanguage link is mainly suitable for linking to the corresponding page in another language. It is not suitable for multiple links of the same other language. See m:Interlanguage use case for a discussion of common troubles with this system and other possible implementations.
The feature can also be used on an image description page to link to the same or a similar image in a sister project. Other interwiki links to images require the prefixed colon.
Note that, if a page may be used as a template (even if it is not in the template namespace), it should not have an interlanguage link; such a link appears in the edge of the page that includes the template, giving the impression that the link is to a version of the referring page in the other language. For the same reason, pages in the MediaWiki namespace are not suitable to put an interlanguage link in.
The mutual order of interlanguage links is preserved, but otherwise the positions within the wikitext are immaterial. Usually they are put at the end. With section editing they appear in the preview if they are in the section being edited.
A link to the project itself (hence also a link to the page itself), even if referred to with the project prefix, appears in-page.
Suppose that we have pages de:Zug, en:Train, fr:Train then we need:
Thus there is not the possibility of simply copying each list, let alone of using a template, as can be done if different languages share one project, with or without separate namespaces, see e.g.:
- m:Template:H-langs:Interwiki linking used at the bottom of the master copy of this page on Meta
- wikisource:Template:InterLingvLigoj
- m:Template:About.
Project families with interlanguage links:
- several Wikimedia project families, see below
- a family of six Wikicities projects, see wikicities:c:WikiMac:WikiMac:Interlanguage links
Wikicities
[edit]In Wikicities, the prefix is the internal project name for some older wikis. For others, "Wikicities:c:" is added in front (e.g. [[Wikicities:c:chicago]]
).
From outside, e.g. from Wikimedia projects, "wikicities:c:" is added in front, for example wikicities:c:Trains:Catégorie:Chronologie.
See also
[edit]- m:Help:Guide for system administrators for setting up interwiki linking
- m:Sister projects
- w:en:Wikipedia:Interwikimedia link
- m:Interwiki link problem
- m:Interwiki map
- interwiki.sql
- Interwiki links to the same page are different from the Esperanto Wikipedia
- wikisource:Wikisource talk:Language domain requests - Discussion of upcoming transition to language subdomains.
Wikiquote-specific content
[edit]Links to other help pages
[edit]Help contents - all pages in the Help namespace: Meta b: c: n: w: q: wikisource wiktionary
|
External Links
[edit]- Special page on the Wikipedia