Community Central
Community Central
mNo edit summary
Tags: Help sourceedit
m (ILL: ~fr.)
Tag: Source edit
 
(57 intermediate revisions by 30 users not shown)
Line 1: Line 1:
  +
{{tocright}}
An '''interwiki link''' is a [[Help:Links|link]] to another community. This link is often to another FANDOM community, although it may also be to any of the sites listed on the [[homepage:w:MediaWiki:Interwiki map|interwiki map]]. Interwiki links are shortcuts that mean you don't have to use the full URL, and they can help simplify the maintenance of links if a community later changes its URL.
 
  +
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.
   
  +
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 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>. So for example if you wanted to link to the Jedi page on Wookieepedia, you would use [[w:c:starwars:Jedi|<code><nowiki>[[w:c:starwars:Jedi]]</nowiki></code>]].
 
* If you would like to modify the displayed text, follow the same format as with all [[Help:Links|links]], and add a '|' after the link along with the text you want. So, for example, <code><nowiki>[[w:c:starwars:Jedi|test]]</nowiki></code>, would appear as [[w:c:starwars:Jedi|test]].
 
* Note that non-English communities often have a language code prefix. A German community will often have a URL like <code>de.wiki-name.wikia.com</code>, while Spanish communities come under <code>es.wiki-name.wikia.com</code>. When you link to one of these communities, simply include the language code prefix. Example: <code><nowiki>[[w:c:fr.wiki-name:Page]]</nowiki></code> (note the dot between "fr" and the wiki name).
 
   
  +
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 another language version of your community (interlanguage links)==
 
* To link to a version of your community in different language, use <code><nowiki>[[</nowiki><var>languagecode</var>:<var>pagename</var>]]</code>, e.g.<code>[[<var>fr</var>:<var>fromage</var>]]</code> will link to the "fromage" article on the French-language version of that community.
 
* If you leave off the pagename, it will use the pagename of the article that the interwiki link is placed on.
 
* Generally such links are placed alphabetically by language code at the end of an article.
 
* Note: because different languages can use different names (such as the English cycling.wikia.com and the French cyclisme.wikia.com), interlanguage linking must be manually activated by the FANDOM community team. If your topic has a community in a different language at FANDOM, and you would like to activate interlanguage linking, please leave a request on the [[homepage:w:project:Interlanguage_link_requests|Interlanguage link requests]] page on Community Central.
 
* See [[Help:Interlanguage links]] for more information about this kind of link.
 
   
==Linking to an external wiki community==
+
==Linking to another Fandom wiki==
* 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]]. These interwiki links look like local links.
+
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.
* <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]]
 
* Note that the name used in the interwiki link is not always exactly the same as the domain or sub-domain, e.g. [[MetaWikipedia:]] vs. http://meta.wikimedia.org/wiki. FANDOM's interwiki map also supports [[MetaWikiMedia:]] and [[m:]] for this community.
 
* Many off-FANDOM MediaWiki help pages are kept on http://mediawiki.org/wiki/, which can be linked to with [[mw:]]. Don't confuse this with the [[Special:Allmessages|MediaWiki:]] [[Help:Namespace|namespace]] for [[Help:System messages|system messages]].
 
   
  +
*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>.
==Linking to a FANDOM community from an off-FANDOM community==
 
  +
** ''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>]].
*You can generally link to any FANDOM community using the syntax:
 
  +
*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.
:<code><nowiki>[[Wikia:c:wiki-name:pagename]]</nowiki></code> or <code><nowiki>[[Wikiasite:wiki-name:pagename]]</nowiki></code>
 
*For example, <code><nowiki>[[Wikia:c:starwars:Jedi]]</nowiki></code> or <code><nowiki>[[Wikiasite:starwars:Jedi]]</nowiki></code> from a community outside FANDOM would link to http://starwars.wikia.com/wiki/Jedi
+
**''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 {{lc:[[Help:Shared templates|Shared templates]]}} are special cases of interwiki links
 
* To request a specific interwiki link for your community, please visit [[homepage:w:Community Central:Interlanguage link requests|this page]].
+
*[[Project:Interlanguage link requests|Interlanguage link requests]], to request a specific interwiki link for your community
* [[MetaWikipedia:Help:Interwiki linking]]
+
*The [[m:Help:Interwiki linking|Meta-Wiki help page]] on interwiki linking
  +
*[[Help:Shared images|Shared images]], for how to share images across communities on Fandom.
   
==Further Help & Feedback==
+
==Further help and feedback==
 
{{Help and feedback section}}
 
{{Help and feedback section}}
  +
 
[[de:Hilfe:Interwiki-Links]]
 
[[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 41: 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