Help:Interwikimedia links

From Infogalactic: the planetary knowledge core
Jump to: navigation, search

<templatestyles src="Module:Hatnote/styles.css"></templatestyles>

<templatestyles src="Module:Hatnote/styles.css"></templatestyles>

Shortcut:

Lua error in package.lua at line 80: module 'strict' not found.

An interwikimedia link is a link from a Wikimedia Foundation supported project to another one (e.g., from Wikipedia to Wiktionary).

Prefix codes to link to Wikimedia sister projects

Note on linking to foreign-language Wikiprojects

Lua error in Module:Details at line 30: attempt to call field '_formatLink' (a nil value). Inline links to foreign-language Wikiprojects can be made by adding the language code as a prefix:

  • To link to a Wikipedia article in a particular language inline (as opposed to the links in the sidebar), use [[:language code:Title]].
  • To link to a page on a different project in a particular language, expand the above syntax with a code for the project from the table below in § Codes for linking to projects, as in [[:project:language code:Title]] or [[:language code:project:Title]].
For example, [[:s:de:Salz]] or [[:de:s:Salz]] will link to the Salz page on the German-language Wikisource, [[:wikt:fr:sel]] or [[:fr:wikt:sel]] to the sel page on the French-language Wiktionary, etc. See § Doubling prefixes for more tips and examples, plus information on doubling with the category prefix.

For language codes, see List of Wikipedias. Remember to put a colon in front of a link starting with a language code prefix, or the saved edit will not show it at all; however, the colon is optional if the link starts with the project code prefix and then has the language code prefix.

Prefix codes for linking to projects

Unless a language code is added, as discussed above and in § Doubling prefixes, the following interwikimedia prefix codes link to the Wikiprojects in English.

Note that some links don't work as expected within the same project, e.g., meta:Test on Meta itself would mean m:Meta:Test, a different page. Outside of Wikimedia sister projects, only metawikipedia:Test might work for m:Test.

Project Long form Shortcut Pagename template
Wikipedia wikipedia: [[w:]]
Wiktionary [[wiktionary:]] [[wikt:]] Script error: No such module "Template link general".
Wikinews [[wikinews:]] [[n:]] Script error: No such module "Template link general".
Wikibooks [[wikibooks:]] [[b:]] Script error: No such module "Template link general".
Wikiquote [[wikiquote:]] [[q:]] Script error: No such module "Template link general".
Wikisource [[wikisource:]] [[s:]] Script error: No such module "Template link general".
Wikisource (common repository) [[oldwikisource:]] Script error: No such module "Template link general".
Wikispecies [[species:]]
[[wikispecies:]]
Script error: No such module "Template link general".
Wikiversity [[wikiversity:]] [[v:]] Script error: No such module "Template link general".
Wikiversity Beta [[betawikiversity:]]
Wikivoyage [[wikivoyage:]] [[voy:]] Script error: No such module "Template link general".
Wikipedia in another language * [[language code:wikipedia:]] [[language code:]], [[language code:w:]]
Wikimedia Foundation [[wikimedia:]]
[[foundation:]]
[[wmf:]]
Wikimedia Commons [[commons:]] [[c:]] Script error: No such module "Template link general".
Wikimedia Meta-Wiki [[meta:]]
[[metawikipedia:]]
[[m:]] Script error: No such module "Template link general".
Strategic planning [[strategy:]]
Wikimedia Incubator [[incubator:]] Script error: No such module "Template link general".
MediaWiki [[mediawikiwiki:]] [[mw:]] Script error: No such module "Template link general".
MediaWiki Quality [[quality:]]
MediaWiki OTRS
ticket with TicketID
ticket with TicketNumber
[[otrswiki:]]
[[otrs:000000]]
[[ticket:0000000000000000]]
Phabricator
(formerly Bugzilla and MediaZilla)
[[phabricator:]]
[[bugzilla:]]
[[mediazilla:]]
[[phab:]]
Nostalgia [[nost:]]
Test Wikipedia [[testwiki:]]
Wikidata [[wikidata:]] [[d:]] Script error: No such module "Template link general".
Outreach Wiki [[outreach:]]
[[outreachwiki:]]
Tool Labs [[toollabs:]]

Special versions of Wikipedia

Note that the section above includes two special versions of Wikipedia, nostalgia and test. Nostalgia is a static copy of Wikipedia, as it was in 2001, and can be linked to by using [[nost:]]. Test is a version of Wikipedia for edit and software testing and can be linked to by using [[testWiki:]].

Tips for using interproject and interlanguage links

Hiding the visible prefix

To suppress the first, visible prefix in the saved page, use the pipe trick: Add | at the end of the link, like this: [[s:test|]]. Upon saving your edits, it will be expanded to [[s:test|test]]. Note that this only works for the first prefix, so saving [[s:en:test|]], will automatically expand to [[s:en:test|en:test]], not to [[s:en:test|test]].

Doubling prefixes

Lua error in Module:Details at line 30: attempt to call field '_formatLink' (a nil value). Lua error in Module:Details at line 30: attempt to call field '_formatLink' (a nil value).

As demonstrated in the examples below, combining certain prefixes allow them to be combined, thus enabling direct page links that are not possible with a single prefix. For example, one can link a word in the English Wikipedia to a term in the German Wiktionary, or [[link to a category in the Commons.

When using language codes, the order of the prefixes does not matter. Remember to put a colon in front of a link starting with a language prefix; however, the colon is optional if the link starts with the project code prefix and then has the language prefix. See the last two examples in the table below.

When using the category prefix, the order of the prefixes does matter. The order must be [[project:category:category-name]]. Starting with a colon and the prefix category links to categories on this Wikipedia, creating a red link if the category doesn't exist. Without the colon but starting with the prefix category, nothing appears in the saved page.

Examples of link combinations

Wikitext Results

[[:en:Main Page]]
[[:de:Hauptseite]]

en:Main Page
de:Hauptseite
[[commons:Main Page]] commons:Main Page
[[commons:category:Wikimedia]] commons:category:Wikimedia
[[wikibooks:Main Page|]] Main Page
[[wikt:de:Rechner]] wikt:de:Rechner
[[wiktionary:de:Rechner|]] de:Rechner
[[:wiktionary:de:Rechner|]] de:Rechner

Interproject links using the secure server

<templatestyles src="Module:Hatnote/styles.css"></templatestyles>

Links created by the methods described on this page default to being unencrypted; if the referring page (the one with the link) is being browsed via an HTTPS connection, all interproject links and wikilinks on that page will be rewritten to https://.

Previously, to create interproject links that would use the respective secure server, the {{sec link auto}} template was needed. However, as interwiki links now generate protocol-independent links, wrapping with this template is now no longer required.

Linking to international chapters of Wikimedia

Note that these shortcuts do not link to the versions of Wikipedia (or to other reader-focused, information-delivering projects such as Wiktionary) in languages other than English, but instead to link to the localized equivalent of http://www.wikimedia.com (that is, modified for the local language, country or culture).

International chapters of Wikimedia Shortcut
Argentina [[wmar:]]
Australia [[wmau:]]
Belgium [[wmbe:]]
Canada [[wmca:]]
Switzerland [[wmch:]]
Czech Republic [[wmcz:]]
Germany [[wmde:]]
Finland [[wmfi:]]
Hong Kong [[wmhk:]]
Hungary [[wmhu:]]
India [[wmin:]]
Indonesia [[wmid:]]
Israel [[wmil:]]
Italy [[wmit:]]
Macedonia [[wmmk:]]
Netherlands [[wmnl:]]
Norway [[wmno:]]
Poland [[wmpl:]]
Russia [[wmru:]]
Serbia [[wmrs:]]
Sweden [[wmse:]]
Turkish [[wmtr:]]
Taiwan [[wmtw:]]
United Kingdom [[wmuk:]]

See also

ca:Viquipèdia:Enllaços entre viquipèdies ml:വിക്കിപീഡിയ:ഇന്റര്‍‌വിക്കിമീഡിയ കണ്ണികള്‍ pl:Wikipedia:Tabela metod tworzenia linków