Community Central
Community Central
m (ILL: ~fr.)
Tag: Source edit
 
(33 intermediate revisions by 27 users not shown)
Line 1: Line 1:
<jwplayer media-id="aSt7ckzR" />
 
An '''interwiki link''' is a [[Help:Links|link]] to another community, most often found within the body of an article. It can be to another FANDOM community or any of the sites listed on the [[community:MediaWiki:Interwiki map|interwiki map]]. It's an easy, [[help:wikitext|wikitext]] way to link to a page on another wiki without having to type out a whole URL.
 
 
{{tocright}}
 
{{tocright}}
 
An '''interwiki link''' is a [[Help:Links|link]] to another wiki, most often found within the body of a wiki page. It can be to another Fandom wiki, or to any of the wiki sites listed on the [[MediaWiki:Interwiki map|interwiki map]]. It's an easy, [[Help:Wikitext|wikitext]] way to link to a page on another wiki without having to type out a whole URL.
==Linking to another FANDOM community==
 
* To create an interwiki link from your FANDOM community to another, use the format <code><nowiki>[[w:c:wiki-name:pagename]]</nowiki></code>. For instance, if you wanted to link to The Queen Victoria page on the Eastenders Wiki, you would use [[w:c:eastenders:The Queen Victoria|<code><nowiki>[[w:c:eastenders:The Queen Victoria]]</nowiki></code>]].
 
* If you would like to modify the displayed text, do as you would with any [[Help:Links|link]]. Add a '|' after the link, followed by your desired text. For example, <code><nowiki>[[w:c:eastenders:The Queen Victoria|test]]</nowiki></code> would appear as [[w:c:eastenders:The Queen Victoria|test]].
 
* You might want to actually click on newly-made interwiki links to make sure your spelling's right. Unlike normal links, interwiki links don't check to see whether the target page exists. That means [[w:c:batman:The Joker]] ''looks'' the same as the uncreated [[w:c:batman:Superman needs to stay in Metropolis]].
 
* Non-English communities often use language code prefixes. You'll typically link to a page on a German community by putting '''de.''' before the domain name: <code><nowiki>[[w:c:</nowiki>'''de.'''<nowiki>wiki-name:Page Name]]</nowiki></code>. It's important to use the name of the page ''in the '''target''' language''. Something like [[w:c:ru.disney:Donald Duck]] probably won't work, but [[w:c:ru.disney:Дональд Дак]] will.
 
   
  +
To type an interwiki link, you must be using [[Help:Source editor|source editor]]. Be aware that the link won't work in the preview section, but works fine once saved ([[d:p/4400000000003109602|bug discussion]]).
==Linking to an external wiki community==
 
* Sites listed in the ''[[homepage:w:MediaWiki:Interwiki map|interwiki map]]'' can be linked via <code><nowiki>[[prefix:pagename]]</nowiki></code>. For example, <code><nowiki>[[wikipedia:Jedi]]</nowiki></code> will be converted to link to the English Wikipedia's "Jedi" article: [[wikipedia:Jedi]].
 
* <code><nowiki>[[Wikipedia:es:India]]</nowiki></code> or <code><nowiki>[[wp:es:India]]</nowiki></code> will be converted to link to the Spanish Wikipedia's "India" article: [[wikipedia:es:India]]
 
* Interwiki prefixes are generally case-insensitive, meaning that [[wikispecies:Lemur]], [[Wikispecies:Lemur]] — and even [[wiKISPECies:Lemur]] — all go to the same place.
 
* Some communities have multiple interwiki prefixes at FANDOM. Consider https://meta.wikimedia.org. FANDOM's interwiki map allows [[m:]] ''and'' [[meta:]] ''and'' [[metawikimedia:]] to work. In other cases — like [[wiktionary:]] — there may be only one way to get to a community.
 
* Many off-FANDOM MediaWiki help pages are kept on https://mediawiki.org/wiki/, which can be linked to with [[mw:]] — but you shouldn't confuse this with the [[Special:Allmessages|MediaWiki:]] [[Help:Namespace|namespace]] for [[Help:System messages|system messages]].
 
   
  +
A list of the current interwiki prefixes for your wiki may be viewed via the [[MediaWiki:Interwiki map|interwiki map]], or by using the Query API, e.g. <code>https://community.fandom.com/api.php?action=query&meta=siteinfo&siprop=interwikimap</code>.
==Linking to a FANDOM community from an off-FANDOM community==
 
If you're on a non-FANDOM wiki, you can usually link back here using one of the following three syntaxes:
 
<pre>
 
[[wikia:wiki-name:pagename]]
 
   
 
==Linking to another Fandom wiki==
[[wikia:c:wiki-name:pagename]]
 
  +
To create an interwiki link to a different Fandom wiki, use the syntax <code><nowiki>[[w:c:wikiname]]</nowiki></code> for the target wiki's homepage, or <code><nowiki>[[w:c:wikiname:Pagename]]</nowiki></code> for a specific page.
   
  +
*Note that a Fandom wiki name should be written exactly like it is in the target wiki's URL: <code><nowiki>https://</nowiki>'''wikiname'''<nowiki>.fandom.com/wiki/</nowiki></code>.
[[wikiasite:wiki-name:pagename]]
 
 
** ''Example:'' To link to "The Queen Victoria" page on [[w:c:eastenders|EastEnders Wiki]], you would use [[w:c:eastenders:The Queen Victoria|<code><nowiki>[[w:c:</nowiki>'''eastenders'''<nowiki>:The Queen Victoria]]</nowiki></code>]].
</pre>
 
  +
*If you would like to modify the displayed text of a link, simply add <code>|</code> directly after the page name, followed by your desired display text.
For example, typing <code><nowiki>[[wikia:muppet:Kermit]]</nowiki></code> on a community outside FANDOM would link to the [[w:c:muppet:Kermit|Kermit page at the Muppet Wiki]].
 
  +
**''Example:'' <code><nowiki>[[w:c:eastenders:The Queen Victoria</nowiki>'''|displayed text'''<nowiki>]]</nowiki></code> would result in [[w:c:eastenders:The Queen Victoria|displayed text]].
  +
*You might want to actually click on newly-made interwiki links to ensure you didn't make any typos. Unlike local Fandom wiki links, interwiki links ''don't display in different colour text'' if the target page doesn't yet exist.
  +
**''Example:'' The link for [[w:c:batman:The Joker|<code><nowiki>[[w:c:batman:The Joker]]</nowiki></code>]] on [[w:c:batman|Batman Fandom Wiki]] displays the same as the not-yet-created [[w:c:batman:Superman needs to stay in Metropolis|<code><nowiki>[[w:c:batman:Superman needs to stay in Metropolis]]</nowiki></code>]].
  +
*Non-English Fandom wikis often use [[Help:Language codes|language code]] prefixes (with the wiki's name in English), using the syntax <code><nowiki>[[w:c:</nowiki>'''langcode.'''<nowiki>wikiname]]</nowiki></code>. The language code can be found in the target wiki's URL: <code><nowiki>https://wikiname.fandom.com/</nowiki>'''langcode'''<nowiki>/wiki/</nowiki></code>. It's important to write the page name ''in the language of the target page''.
  +
** ''Example:'' You'll typically link to a page from a German Fandom wiki by putting <code><nowiki>de.</nowiki></code> before the wiki name: <code><nowiki>[[w:c:</nowiki>'''de.'''wikiname:Pagename]]</code>.
  +
** ''Example:'' <code><nowiki>[[w:c:</nowiki>'''ru'''<nowiki>.disney:</nowiki>'''Donald Duck'''<nowiki>]]</nowiki></code> won't link to the [[w:c:ru.disney|Russian Disney Wiki]] "Donald Duck" page, but [[w:c:ru.disney:Дональд Дак|<code><nowiki>[[w:c:</nowiki>'''ru'''<nowiki>.disney:</nowiki>'''Дональд Дак'''<nowiki>]]</nowiki></code>]] will.
  +
  +
===Linking from a Gamepedia wiki===
  +
Before the above syntax may be used on any historically-Gamepedia wiki, a new entry must be added to the interwiki table, with the prefix <code>w</code> and the URL <code><nowiki>https://community.fandom.com/wiki/$1</nowiki></code>. You can do so using '''Special:Interwiki''' (from [[mw:Extension:Interwiki|Extension:Interwiki]], which is installed on every Gamepedia wiki), or by contacting your Wiki Representative or Fandom support and asking for it to be added.
  +
 
==Linking to an external wiki==
  +
External (i.e, non-Fandom) wikis that are listed in the [[MediaWiki:Interwiki map|interwiki map]] can be linked to with the syntax <code><nowiki>[[wikiprefix:Pagename]]</nowiki></code>.
  +
  +
*Pages from some external wikis can only be linked to by using one specific prefix.
  +
**''Example:'' [https://www.wiktionary.org/ Wiktionary] only uses the prefix <code><nowiki>[[</nowiki>'''wiktionary'''<nowiki>:Pagename]]</nowiki></code>.
 
**''Example:'' Many non-Fandom [https://mediawiki.org/wiki/ MediaWiki] help pages can be linked to with the prefix <code><nowiki>[[</nowiki>'''mw'''<nowiki>:Pagename]]</nowiki></code>. ''Don't confuse this'' with the [[Help:Namespaces|MediaWiki namespace]] for [[Help:System messages|system messages]].
  +
*In other cases, external wikis have multiple prefixes that can be used for interwiki links to their pages.
  +
**''Example:'' [https://www.wikipedia.org/ Wikipedia] pages can be linked to with the syntax <code><nowiki>[[</nowiki>'''wikipedia'''<nowiki>:Pagename]]</nowiki></code> ''or'' <code><nowiki>[[</nowiki>'''wp'''<nowiki>:Pagename]]</nowiki></code>.
  +
**''Example:'' [https://meta.wikimedia.org Wikimedia] can be linked to with the syntax <code><nowiki>[[</nowiki>'''m''':Pagename]]</code>, <code><nowiki>[[</nowiki>'''meta''':Pagename]]</code>, ''or'' <code><nowiki>[[</nowiki>'''metawikimedia''':Pagename]]</code>.
  +
*Interwiki prefixes are generally not case-sensitive.
  +
**''Example:'' [[wikispecies:Lemur|<code><nowiki>[[</nowiki>'''w'''<nowiki>ikispecies:Lemur]]</nowiki></code>]], [[wikispecies:Lemur|<code><nowiki>[[</nowiki>'''W'''<nowiki>ikispecies:Lemur]]</nowiki></code>]] and [[wikispecies:Lemur|<code><nowiki>[[wi</nowiki>'''KISPEC'''<nowiki>ies:Lemur]]</nowiki></code>]] all go to the same page.
  +
* Non-English external wikis often use language code prefixes, using the syntax <code><nowiki>[[wikiprefix:</nowiki>'''langcode:'''<nowiki>Pagename]]</nowiki></code>. It's important to write the page name ''in the language of the target page''. However, in some cases, a non-English wiki page will share the same page name as the English version.
  +
** ''Example:'' <code><nowiki>[[wikipedia:</nowiki>'''cy''':'''Wales'''<nowiki>]]</nowiki></code> won't link to the [[wikipedia:cy:Hafan|Welsh Wikipedia]] "Wales" page, but [[wikipedia:cy:Cymru|<code><nowiki>[[wikipedia:</nowiki>'''cy''':'''Cymru'''<nowiki>]]</nowiki></code>]] will, as "Cymru" is Welsh for "Wales."
  +
**''Example:'' The word for "India" is the same in both English and Spanish, so the only difference between the interwiki links for the two Wikipedia "India" pages is the language prefix: [[wp:India|<code><nowiki>[[wp:India]]</nowiki></code>]] for the English Wikipedia page, and [[wp:es:India|<code><nowiki>[[wp:</nowiki>'''es'''<nowiki>:India]]</nowiki></code>]] for the [[wp:es:wikipedia:Portada|Spanish Wikipedia]] page.
  +
 
==Linking to a Fandom wiki from an external wiki==
 
Some non-Fandom wikis allow you to link back to a Fandom wiki using one of the following syntaxes:
  +
  +
*<code><nowiki>[[</nowiki>'''w''':'''c''':wikiname:Pagename]]</code>
  +
*<code><nowiki>[[</nowiki>'''centralwikia''':'''w''':'''c''':wikiname:Pagename]]</code> (on Wikipedia and other [[meta:wikimedia projects|Wikimedia Foundation projects]])
  +
*<code><nowiki>[[</nowiki>'''wikia''':wikiname:Pagename]]</code>
  +
*<code><nowiki>[[</nowiki>'''wikia''':'''c''':wikiname:Pagename]]</code>
  +
*<code><nowiki>[[</nowiki>'''wikiasite''':wikiname:Pagename]]</code>
 
For example, typing [[w:c:muppet:Kermit|<code><nowiki>[[w:c:muppet:Kermit]]</nowiki></code>]] on a non-Fandom wiki would link to the [[w:c:muppet|Muppet Wiki]] "Kermit" page (if interwiki linking is set up on the target external wiki, that is).
   
 
==See also==
 
==See also==
  +
*[[Help:Interlanguage links|Interlanguage links]], which connect pages on the same topic, written in different languages
* [[Help:Shared help|Shared help]] and [[Help:Shared templates|shared templates]] are special cases of interwiki links
 
* [[help:Interlanguage link|Interlanguage link]]s connect two pages on the same topic, written in different languages
+
*[[Project:Interlanguage link requests|Interlanguage link requests]], to request a specific interwiki link for your community
 
*The [[m:Help:Interwiki linking|Meta-Wiki help page]] on interwiki linking
* To request a specific interwiki link for your community, please visit [[community:Interlanguage link requests|this page]]
 
  +
*[[Help:Shared images|Shared images]], for how to share images across communities on Fandom.
* Dive deeper with the [[mw:Help:Interwiki linking|meta wiki help page]] on this topic
 
   
 
==Further help and feedback==
 
==Further help and feedback==
{{Help and feedback section}}[[de:Hilfe:Interwiki-Links]]
+
{{Help and feedback section}}
  +
  +
[[de:Hilfe:Interwiki-Links]]
 
[[es:Ayuda:Enlace interwiki]]
 
[[es:Ayuda:Enlace interwiki]]
  +
[[fi:Ohje:Wikienväliset linkit]]
[[fr:Aide:Lien interwiki]]
+
[[fr:Aide:Liens interwikis]]
  +
[[hi:सहायता:इंटरविकि कड़ियाँ]]
  +
[[hu:Segítség:Interwiki hivatkozás]]
 
[[it:Aiuto:Link interwiki]]
 
[[it:Aiuto:Link interwiki]]
 
[[ja:ヘルプ:ウィキ間リンク]]
 
[[ja:ヘルプ:ウィキ間リンク]]
Line 43: Line 69:
 
[[pt:Ajuda:Link interwiki]]
 
[[pt:Ajuda:Link interwiki]]
 
[[ru:Справка:Интервики-ссылки]]
 
[[ru:Справка:Интервики-ссылки]]
  +
[[tr:Yardım:Ortak wiki bağlantısı]]
 
[[uk:Довідка:Інтервікі-посилання]]
 
[[uk:Довідка:Інтервікі-посилання]]
 
[[vi:Trợ giúp:Liên kết liên wiki]]
 
[[vi:Trợ giúp:Liên kết liên wiki]]
 
[[zh:Help:跨wiki鏈接]]
 
[[zh:Help:跨wiki鏈接]]
  +
 
[[Category:Help]]
 
[[Category:Editing]]
 
[[Category:Editing]]
 
[[Category:Source editing]]
 
[[Category:Source editing]]
 
[[Category:Link help]]
 
[[Category:Link help]]
[[Category:Help]]
 

Latest revision as of 18:21, 5 August 2023

An interwiki link is a link to another wiki, most often found within the body of a wiki page. It can be to another Fandom wiki, or to any of the wiki sites listed on the interwiki map. It's an easy, wikitext way to link to a page on another wiki without having to type out a whole URL.

To type an interwiki link, you must be using source editor. Be aware that the link won't work in the preview section, but works fine once saved (bug discussion).

A list of the current interwiki prefixes for your wiki may be viewed via the interwiki map, or by using the Query API, e.g. https://community.fandom.com/api.php?action=query&meta=siteinfo&siprop=interwikimap.

Linking to another Fandom wiki

To create an interwiki link to a different Fandom wiki, use the syntax [[w:c:wikiname]] for the target wiki's homepage, or [[w:c:wikiname:Pagename]] for a specific page.

  • Note that a Fandom wiki name should be written exactly like it is in the target wiki's URL: https://wikiname.fandom.com/wiki/.
  • If you would like to modify the displayed text of a link, simply add | directly after the page name, followed by your desired display text.
    • Example: [[w:c:eastenders:The Queen Victoria|displayed text]] would result in displayed text.
  • You might want to actually click on newly-made interwiki links to ensure you didn't make any typos. Unlike local Fandom wiki links, interwiki links don't display in different colour text if the target page doesn't yet exist.
  • Non-English Fandom wikis often use language code prefixes (with the wiki's name in English), using the syntax [[w:c:langcode.wikiname]]. The language code can be found in the target wiki's URL: https://wikiname.fandom.com/langcode/wiki/. It's important to write the page name in the language of the target page.

Linking from a Gamepedia wiki

Before the above syntax may be used on any historically-Gamepedia wiki, a new entry must be added to the interwiki table, with the prefix w and the URL https://community.fandom.com/wiki/$1. You can do so using Special:Interwiki (from Extension:Interwiki, which is installed on every Gamepedia wiki), or by contacting your Wiki Representative or Fandom support and asking for it to be added.

Linking to an external wiki

External (i.e, non-Fandom) wikis that are listed in the interwiki map can be linked to with the syntax [[wikiprefix:Pagename]].

  • Pages from some external wikis can only be linked to by using one specific prefix.
  • In other cases, external wikis have multiple prefixes that can be used for interwiki links to their pages.
    • Example: Wikipedia pages can be linked to with the syntax [[wikipedia:Pagename]] or [[wp:Pagename]].
    • Example: Wikimedia can be linked to with the syntax [[m:Pagename]], [[meta:Pagename]], or [[metawikimedia:Pagename]].
  • Interwiki prefixes are generally not case-sensitive.
  • Non-English external wikis often use language code prefixes, using the syntax [[wikiprefix:langcode:Pagename]]. It's important to write the page name in the language of the target page. However, in some cases, a non-English wiki page will share the same page name as the English version.
    • Example: [[wikipedia:cy:Wales]] won't link to the Welsh Wikipedia "Wales" page, but [[wikipedia:cy:Cymru]] will, as "Cymru" is Welsh for "Wales."
    • Example: The word for "India" is the same in both English and Spanish, so the only difference between the interwiki links for the two Wikipedia "India" pages is the language prefix: [[wp:India]] for the English Wikipedia page, and [[wp:es:India]] for the Spanish Wikipedia page.

Linking to a Fandom wiki from an external wiki

Some non-Fandom wikis allow you to link back to a Fandom wiki using one of the following syntaxes:

  • [[w:c:wikiname:Pagename]]
  • [[centralwikia:w:c:wikiname:Pagename]] (on Wikipedia and other Wikimedia Foundation projects)
  • [[wikia:wikiname:Pagename]]
  • [[wikia:c:wikiname:Pagename]]
  • [[wikiasite:wikiname:Pagename]]

For example, typing [[w:c:muppet:Kermit]] on a non-Fandom wiki would link to the Muppet Wiki "Kermit" page (if interwiki linking is set up on the target external wiki, that is).

See also

Further help and feedback