Help:Interwiki linking on Wikimedia wikis: Difference between revisions

Content deleted Content added
 
(14 intermediate revisions by 6 users not shown)
Line 1:
{{H:h}}
{{languages}}
{{hatnote|For information not specific to Wikimedia wikis, see [[mw:Manual:Interwiki]] and [[mw:Help:Interwiki linking]]}}
Line 7 ⟶ 6:
This is called "interwiki linking". The precise interwiki links used vary slightly for each project, and can be seen at [[Special:Interwiki]].
 
== Interwiki linking from and within Wikimedia ==
== List of interwiki links ==
Within [[m:Wikimedia|Wikimedia]], for the purpose of interlanguage links (see below), the project families are Wikipedia, Wiktionary, Wikiquote, Wikibooks and Wikisource. Thus, this applies for a link like en:, de:, etc., from a Wikipedia to another one, from a Wiktionary to another one, from a Wikiquote to another one, from a Wikibooks to another one or from a Wikisource to another one.
 
Line 18 ⟶ 17:
! Project !! Long form !! Shortcut
|-
| [[Wikipedia|<b>W</b>ikipedia]]
| <code>[[[[w:|wikipedia:]]]]</code>
| <code>[[[[w:]]]]</code>
|-
| [[Wiktionary|<b>Wikt</b>ionary]]
| <code>[[[[wiktionary:]]]]</code>
| <code>[[[[wikt:]]]]</code>
|-
| [[Wikinews|Wiki<b>n</b>ews]]
| <code>[[[[wikinews:]]]]</code>
| <code>[[[[n:]]]]</code>
|-
| [[Wikibooks|Wiki<b>b</b>ooks]]
| <code>[[[[wikibooks:]]]]</code>
| <code>[[[[b:]]]]</code>
|-
| [[Wikiquote|Wiki<b>q</b>uote]]
| <code>[[[[wikiquote:]]]]</code>
| <code>[[[[q:]]]]</code>
|-
| [[Wikisource|Wiki<b>s</b>ource]]
| <code>[[[[wikisource:]]]]</code>
| <code>[[[[s:]]]]</code>
Line 44 ⟶ 43:
| [[Wikisource]] (multilingual&nbsp;pages)
| <code>[[[[oldwikisource:]]]]</code>
|<code>[[[[s:mul:]]]]</code>
|
|-
| [[Wikispecies|Wiki<b>species</b>]]
| <code>[[[[wikispecies:]]]]</code>
| <code>[[[[species:]]]]</code>
|-
| [[Wikiversity|Wiki<b>v</b>ersity]]
| <code>[[[[wikiversity:]]]]</code>
| <code>[[[[v:]]]]</code>
|-
| [[Wikivoyage|Wiki<b>voy</b>age]]
| <code>[[[[wikivoyage:]]]]</code>
| <code>[[[[voy:]]]]</code>
|-
| [[Wikimedia Foundation|<b>W</b>iki<b>m</b>edia <b>F</b>oundation]]
| <code>[[[[wikimedia:]]]]</code><br /><code>[[[[foundation:]]]]</code>
| <code>[[[[wmf:]]]]</code>
|-
| [[Wikimedia Commons|Wikimedia <b>C</b>ommons]]
| <code>[[[[commons:]]]]</code>
| <code>[[[[c:]]]]</code>
|-
| [[m:Meta:About|Wikimedia Meta<b>M</b>eta-Wiki]]
|| <code>[[[[metawiki:]]]]</code><br/><!--
--><code>[[[[metawikimedia:]]]]</code><br/><!--
Line 81 ⟶ 80:
|
|-
| [[MediaWiki|<b>M</b>edia<b>W</b>iki]]
| <code>[[[[mediawikiwiki:]]]]</code>
| <code>[[[[mw:]]]]</code>
Line 89 ⟶ 88:
|
|-
| [[m:Phabricator|Phabricator<b>Phab</b>ricator]]
| <code>[[[[phabricator:]]]]</code>
| <code>[[[[phab:]]]]</code>
Line 97 ⟶ 96:
|
|-
| [[Wikidata|Wiki<b>d</b>ata]]
| <code>[[[[wikidata:]]]]</code>
| <code>[[[[d:]]]]</code>
|-
| [[Wikifunctions|Wiki<b>f</b>unctions]]
| <code>[[[[wikifunctions:]]]]</code>
| <code>[[[[f:]]]]</code>
Line 201 ⟶ 200:
|}
 
* Other current Wikimedia prefixes: [[betawikiversity:]] (shortform: [[v:mul:]]), [[download:]], [[dbdump:]], [[gerrit:]], [[mail:]], [[mailarchive:]], [[outreach:]], [[otrs:]], [[OTRSwiki:]], [[quality:]], [[spcom:]], [[ticket:]], [[tools:]], [[tswiki:]], [[svn:]], [[sulutil:]] [[rev:]], [[wmania:]]</span>, [[wm2016:]], [[wm2017:]].</span>
<section end=iwl-tables />
* See a complete list of current and old but still working prefixes for all Wikimedia wikis at the [[foundation:Special:SiteMatrix|Wikimedia SiteMatrix]].
 
<section begin=iwl-text />
The '''long forms''' are sometimes overwritten by namespaces with the same name. For example <tt><nowiki>[[meta:]]</nowiki></tt> prefers to the Project namespace instead on Meta,. while <tt><nowiki>[[metawikipedia:]]</nowiki></tt> does. The '''shortcuts''' should work everywhere.
 
The [[m:Interwiki map|interwiki map]] on Meta lists many prefixes, among others, <tt><nowiki>[[wikipedia:]]</nowiki></tt> for the English Wikipedia, working from any Wiki supporting the Meta interwiki map (except for Wikipedias that use it as a project namespace).
 
The shortcuts have different histories. Wikipedia, Wikiquote etc. point to the English versions via an entry in [[m:Interwiki map]], and are also included in [https://phabricator.wikimedia.org/source/mediawiki/browse/master/maintenance/interwiki.list the standard MediaWiki interwiki table]; w, q, b, wikt etc. are used like interlanguage wikilinks to link to the sisterproject in the same language (so [[w:it:b:]] is equivalent to [[Wikibooks:it:]]), and are hardcoded rather than part of [[interwiki map]].
Line 222 ⟶ 221:
When dealing with pages whose title begins with the projects prefix but the page is internal, for example [[Wikibooks:What is Wikibooks?]], keep things consistent across projects by adding the projects prefix again. It becomes, [[Wikibooks:Wikibooks:What is Wikibooks?]].
 
In the first example the <code>Wikibooks:</code> prefix gets in the way of recognizing <code>Wikibooks:</code> as a namespace in Wikibooks. But in MetaWiki, adding <code>Wikibooks:</code> makes the link to be treated as an interwiki prefix rather than a namespace, this allows links to be redirected to another project. The codes work for all projects, but they don't detect [[Help:Page existence|existence]] or support [[Help:Self link|self-links]] with interwiki links.
 
=== Prefixes ===
Line 290 ⟶ 289:
 
== Interlanguage links ==
{{see also|mw:Interlanguge links}}
:''For a complete list of current languages and language codes, see: [[w:List of Wikipedias]]''
 
Line 317 ⟶ 315:
* on en: [[:de:Zug]], [[:fr:Train]]
* on fr: [[:de:Zug]], [[:en:Train]]
 
=== In-page interlanguage links ===
To make an interlanguage link in-page, prefix a colon (e.g. <nowiki>[[:en:wiki|wiki]]</nowiki>). This can be useful to link to a page in another language, if no local version is available. For example, several templates for conveniently making such links would be:
 
* {{links-small|w|template|nli}} - <nowiki>[[:nl:{{{1}}}]] (in [[Dutch language|Dutch]])</nowiki>
* {{links-small|w|template|nlil}} - <nowiki>[[{{{1}}}]] ([[:nl:{{{2|{{{1}}}}}}|nl]])</nowiki>
* {{links-small|w|template|nlii}} - <nowiki>''[[{{{1}}}]]'' ([[:nl:{{{2|{{{1}}}}}}|nl]])</nowiki>
* {{links-small|w|template|nlis}} - <nowiki>([[:nl:{{{1|{{PAGENAME}}}}}|nl]])</nowiki>
* {{links-small|w|template|nlinl}} - <nowiki>{{{1}}} ([[:nl:{{{2|{{{1}}}}}}|nl]])</nowiki>
 
=== Interlanguage links in the wider sense ===
Line 332 ⟶ 321:
 
Possible reasons for using an "interlanguage link" in the page body include:
* controlControl over position
* controlControl over label
* theThe target contains an anchor
 
== See also ==
Line 340 ⟶ 329:
* [[mw:Manual:Interwiki]]
* [[w:Help:Interwiki linking]]
* [[Help:Interlanguage link demo]]
* {{mlm|Sister projects||Wikimedia sister projects}}
* [[m:Templates for linking to sister projects]]
Line 345 ⟶ 335:
** [https://phabricator.wikimedia.org/diffusion/MW/browse/master/maintenance/interwiki.list Default interwiki prefixes]
*[[MeatBall:InterWiki]]
{{h:f|langs=|enname=Interwiki linking}}
 
[[Category:EditorHandbook handbookWikimedia-specific]]
[[Category:Content and banner management]]