Jump to content

ସହଯୋଗ:Interwiki linking

ଉଇକିପିଡ଼ିଆରୁ

By adding a prefix to anotherproject,internal link style ( "prefixed internal link style" ) can be used tolinkto a page of another project. A system of short-handed link labels is used to refer to different projects, in the context of interproject linking, as seen within the actual source text. For example,en:refers to the English Wikipedia. This is seen in[[en:Apple]],which produces a link to the English Wikipedia article on "Apple". Interwiki links which link different language Wikipedias are known asInterlanguage links.

This is calledinterwiki.For each project, aninterwiki 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.

Interwiki linking from and within Wikimedia

[ସମ୍ପାଦନା]

WithinWikimedia,for the purpose ofinterlanguage links(see below), the project families are Wikipedia, Wiktionary, Wikiquote, Wikibooks, Wikinews, Wikiversity 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, from a Wikinews to another one, from a Wikiversity to another one or from a Wikisource to another one.

The interlanguage link feature works on Wikimedia Commons and Wikispecies, producing links to the Wikipedias. This is not reciprocal, a link from a Wikipedia to Commons or Wikispecies is an in-page link.

Project titles and shortcuts

[ସମ୍ପାଦନା]
Project Long form Shortcut
Wikipedia [[wikipedia:]] [[w:]]
Wiktionary [[wiktionary:]] [[wikt:]]
Wikinews [[wikinews:]] [[n:]]
Wikibooks [[wikibooks:]] [[b:]]
Wikiquote [[wikiquote:]] [[q:]]
Wikisource [[wikisource:]] [[s:]]
Wikispecies [[wikispecies:]] [[species:]]
Wikiversity [[wikiversity:]] [[v:]]
Wikimedia Foundation [[wikimedia:]]
[[foundation:]]
[[wmf:]]
Wikimedia Commons [[commons:]]
Wikimedia Meta-Wiki [[metawikipedia:]]
[[meta:]]
[[m:]]
Wikimedia Incubator [[incubator:]]
Wikimedia Strategic Planning [[strategy:]]
MediaWiki [[mw:]]
MediaZilla/Bugzilla [[mediazilla:]]
[[bugzilla:]]
Testwiki [[testwiki:]]
International chapters Shortcut
Argentina [[wmar:]]
Australia [[wmau:]]
Canada [[wmca:]]
Czech Republic [[wmcz:]]
Germany [[wmde:]]
Finland [[wmfi:]]
Hong Kong [[wmhk:]]
Hungary [[wmhu:]]
India [[wmin:]]
Indonesia [[wmid:]]
Israel [[wmil:]]
Italy [[wmit:]]
Netherlands [[wmnl:]]
Norway [[wmno:]]
Poland [[wmpl:]]
Russia [[wmru:]]
Serbia [[wmrs:]]
Sweden [[wmse:]]
Switzerland [[wmch:]]
Taiwan [[wmtw:]]
United Kingdom [[wmuk:]]

* Other Wikimedia prefixes:betawikiversity:,download:,dbdump:,mail:,mailarchive:,otrs:,OTRSwiki:,quality:,spcom:,tools:,tswiki:,svn:,sulutil:rev:,wmania:,wm2005:,wm2006:,wm2007:,wm2008:,wm2009:.

Thelong formdoesn't work within the same project. Theshortcutworks everywhere.(That is the intention; currently, it does not work on all projects).

Theinterwiki mapon Meta lists many prefixes, among others,[[wikipedia:]]([[wikipedia:]]) for the English Wikipedia, working from any Wiki supporting the Meta interwiki map, not only from MediaWiki wikis. Some prefixes work only with a page, for example:wikipediawikipedia:(fails) vs.wikipediawikipedia:Interwikimedia link(works). These prefixes are case insensitive.

One-letter prefixes (as a live check on the table):Error: no context parameter provided. Use {{other uses}} for "other uses" hatnotes. (help).

Non-Wikimedia interwiki codes have a limitation, that they can only be used through a link. For example, the entry for "John"on Wiktionary, a Wikimedia project, can be accessed by[[wikt:John]]orhttp://meta.wikimedia.org/wiki/wikt:John.However, the latter method does not work for non-Wikimedia wikis. For example, the main page on the Mozilla Wiki can be accessed via[[MozillaWiki:Main Page]],buthttp://meta.wikimedia.org/wiki/MozillaWiki:Main_Pageresults in an error.

A project's own namespace prefix cannot 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.

For portability across projects, one may want to select a link code that leads to the same target from all projects, for example:MetaWikipedia:wikibooks:Main Page.The "superfluous" "MetaWikipedia:" prevents "wikibooks:" being 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, theexistence detectionand theself-link featuredo not work on interwiki links.

Interwiki links can use prefixes for theprojectand/or for thelanguage.Without the prefix, links are local, for pages in the same project and the same language. If only a language is given, they go to a page in the same (or similar) project for the specified language:

[[:fr:]]fr:
[[:os:]]os:

If only the project is specified, they typically go to the language of the source, see above. At most, two prefixes are needed for pages in any existing project and any supported language:

[[s:de:Hauptseite]]s:de:Hauptseite
[[b:en:Main page]]b:en:Main page

In the case of more than one prefix, a page name has to be specified. For example, whilew:anden:from Meta lead to the English Wikipedia's main page, a bare[[w:en:]]does not work:w:en:.

If the language is different, specifying it before the project can also work:

[[:de:q:Hauptseite]]de:q:Hauptseite
[[:en:n:Main page]]en:n:Main page
[[n:en:Main page]]n:en:Main page

The second example doesn't work from English Wikipediaw:en:pages, a project prefix before the language is better.

More than two prefixes are generally unnecessary, the following examples should work everywhere:

[[m:Help:Help]]m:Help:Help
[[w:Interwiki]]w:Interwiki

Two prefixes can have unexpected effects, for example, fromMeta,the following links end up on different pages:

[[m:en:About]]m:en:About
[[:en:m:About]]en:m:About
[[m:About]]m:About

In the first caseMetaignores them:,because it is local and then, interprets en:asw:en:,the prefix for theEnglish Wikipedia.In the second case, the leadingen:goes to the English Wikipedia, where the followingm:goes straight back toMeta.The second example doesn't work at all, from English Wikipediaw:en:pages, only the third example works everywhere.

In other words, multiple prefixes are evaluated left to right by the relevant Wikimedia servers (project and language). For projects without different languages, likeMeta(because Meta is multilingual by itself), language prefixes can be handled as shorthands forw:plus the specified language:

[[:pl:2006]]pl:2006
[[w:pl:2006]]w:pl:2006
[[:pl:w:2006]]pl:w:2006

FromMeta,the first two links both arrive at the Polish 2006 page. The third arrives at the EnglishWikipedia,because that's how the server selected by:pl:interprets the second prefixw:.

For a portable link on that server, it would be a bad idea to usew:,but:pl:does the trick. To test that effect fromMeta,the following links should go to the same page:

[[:ja:2006]]ja:2006
[[:ja:ja:2006]]ja:ja:2006

A universal interwiki link, that is, one that works no matter from which Wikimedia wiki, can be written [[m:project:language:page name]] (e.g.m:b:nl:Wiskunde); this routes the parsing of the links via Meta (bug 4285).

InWikia,the prefix is theinternalproject name for some older wikis. For others, "Wikia:c:" is added in front (e.g.[[Wikia:c:psychology]]). (The "c" is for "city", a legacy of Wikia's original nameWikicities.)

From Wikimedia projects,use[[wikiasite:psychology]],givingwikiasite:psychology;[[wikia:trains:locomotive]],givingwikia:trains:locomotive;or for the central Wikia,centralwikia:About Wikia.

[ସମ୍ପାଦନା]

Interlanguage linksare links from any page (most notably articles) in oneWikipedialanguage to one or more nearly equivalent or exactly equivalent pages in another Wikipedia language.

The interlanguagelinkstake the following form:

[[language code:Title]]

where the language code is the two-letter code as perISO 639-1.(SeeComplete list of language Wikipedias available.English is "en", German is "de", etc.) So for example in the English language article onPlankton,which is available on many other wikis, the interlanguage links might look like this:

[[ar:عوالق]]
[[de:Plankton]]
[[eo:Planktono]]
[[es:Plancton]]
[[fr:Plancton]]
[[nl:Plankton]]
[[ja:プランクトン]]
[[ko:플랑크톤]]
[[pl:Plankton]]
[[ru:Планктон]]
[[simple:Plankton]]
[[zh: Sinh vật phù du giới ]]

NOTE: These links are treated specially, and don't show up in the body of the text, but in a special sidebar section "in other languages" listed by language name.Technically they can 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 is to put them at the bottom of the wikitext.

[ସମ୍ପାଦନା]

Disadvantages of interwiki links:

  • the wikitext is less portable across wikis, because wikis do not always have an interwiki prefix for the same sites and even if they do, the prefixes may differ
  • there is no feature to find interwiki links, while searching for an external link can be done withSpecial:Linksearch(if installed). This is due to the fact that, while there is anexternal links table,there is no such thing for interwiki links. Theinterwiki tableonly stores the interwiki prefixes with their targets as function of the parameter, not the instances of the links. Using the general text search, to search for interwiki links, is more work for the server and therefore, it may be slow, not up-to-date or in busy hours, disabled. See also:Finding external links to a page.

Using templates liketemplate:ml(talkedithistorylinks),the advantages of interwiki links and external links are combined. When a page using this template, which is in this case used for links to the English Wikipedia, is copied to that site, a template with the same name is needed there too. Due to that template, the interwiki links are automatically converted to internal links. Hence, they provide existence detection and allow use of "What links here", as well as Linksearch.

Comparison:

The applicable CSS classes are "extiw" and "external text". The choice may be governed by this, either way, for uniformity or distinction. An interwiki link is easier to type by itself, but if one goes to the webpage anyways, before putting the link, copying the URL is very convenient. When a template is created, e.g.Template:imdb title(backlinks,edit), the template can be made, such that it uses an interwiki link and a parameter, like "tt0389790" or "0389790", or that it uses an external link and a parameter like one of those or the full url, if that is more convenient.

[ସମ୍ପାଦନା]

Disadvantages of interwiki links to the same wiki, compared to internal links:

  • no existence detection
  • "What links here" works for internal links only

Advantages of interwiki links to the same wiki, compared to internal links:

  • better portability across wikis, provided that the same prefix applies and is not equal to a namespace name