PanSola@legacy41563399 (talk | contribs) |
Dr ishmael (talk | contribs) (cleanup, update, better explanation/examples) |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
− | [[ |
+ | [[WP:Interwiki links|Interwiki links]] are links pointing to external websites using an "internal link" syntax. This is made possible through the [[MW:Manual:Interwiki table|interwiki table]], which maps a site's URL to a string that can be used as a prefix in the internal link syntax. (Both of the links in this introduction are interwiki links.) |
− | == |
+ | == Interwiki syntax == |
+ | To create an interwiki link to a page on another site, use the internal link syntax (double square brackets <code><nowiki>[[ ]]</nowiki></code>) as if linking to the page name locally, but prefix the page name with that site's identifier from the interwiki table. For example, to link to the Guild Wars article on Wikipedia, you would write the link like this: |
||
− | ; Linking to GuildWiki from other wikis |
||
− | * If the other wiki is a Wikia wiki, [['''guildwiki:ARTICLENAME''']] usually works |
||
− | ** If the above does not work, [['''w:c:guildwars:ARTICLENAME''']] will work. |
||
− | * From most MediaWiki wikis not hosted by Wikia, either [['''wikia:guildwars:ARTICLENAME''']] or [['''wikia:c:guildwars:ARTICLENAME''']] should work. |
||
+ | {| class="stdt" |
||
⚫ | |||
+ | ! To create... || ...use this code... || ...which produces this result |
||
− | * [[pvx:|PvXWiki]] - [['''pvx:ARTICLENAME''']] |
||
+ | |- |
||
− | * [[gww:|GWW]] - [['''gww:ARTICLENAME''']] |
||
+ | | A link to Wikipedia |
||
− | * [[gw2w:|GW2W]] - [['''gw2w:ARTICLENAME''']] |
||
+ | | <code><nowiki>[[Wikipedia:Guild Wars]]</nowiki></code> |
||
− | * [[w:c:guildwars2|GW2]] - [['''w:c:guildwars2:ARTICLENAME''']] |
||
+ | | [[Wikipedia:Guild Wars]] |
||
+ | |- |
||
+ | | A shorter link to Wikipedia |
||
+ | | <code><nowiki>[[WP:Guild Wars]]</nowiki></code> |
||
+ | | [[WP:Guild Wars]] |
||
+ | |- |
||
+ | | A link to Wikipedia with different display text |
||
+ | | <code><nowiki>[[WP:Guild Wars|Guild Wars on Wikipedia]]</nowiki></code> |
||
+ | | [[WP:Guild Wars|Guild Wars on Wikipedia]] |
||
+ | |- |
||
+ | | A link to Wikipedia's main page |
||
+ | | <code><nowiki>[[WP:|Wikipedia's Main Page]]</nowiki></code> |
||
+ | | [[WP:|Wikipedia's Main Page]] |
||
+ | |} |
||
+ | A site can be defined in the interwiki table with multiple prefixes. As shown in the examples above, Wikipedia can be linked using both the full <code>Wikipedia:</code> prefix and the shorthand <code>WP:</code> prefix. |
||
− | ; Common Wikimedia and Mediawiki sites |
||
− | * [[wikipedia:|English Wikipedia]] - [['''wikipedia:ARTICLENAME''']] |
||
− | * Foreign language Wikipedia - [['''wikipedia:LANCODE:ARTICLENAME''']] |
||
⚫ | |||
⚫ | |||
− | * [[mw:|MediaWiki]] - [['''mw:ARTICLENAME''']] |
||
+ | Interwiki prefixes are ''not'' case-sensitive, thus <code>wikipedia:</code>, <code>Wikipedia:</code>, <code>WikiPedia</code>, and <code>WIKIPEDIA:</code> are all interchangeable. |
||
− | ; Other |
||
− | * [[wikiindex:|WikiIndex]] - [['''wikiindex:ARTICLENAME''']] (note: two I's in a row) |
||
− | * [[w:Project:Community Portal|Central Wikia]] - [['''w:ARTICLENAME''']] |
||
− | * [[w:c:help|Wikia Help]] - [['''w:c:help:ARTICLENAME''']] |
||
− | * Any wiki that is a subdomain under Wikia - [['''w:c:SUBDOMAIN:ARTICLENAME''']] |
||
− | * [[uncyclopedia:|Uncyclopedia]] - [['''uncyclopedia:ARTICLENAME''']] |
||
+ | == Commonly used interwikis == |
||
− | [[Category:GuildWiki]] |
||
⚫ | |||
+ | * [[pvx:|PvX Wiki]] - <code><nowiki>[[pvx: ]]</nowiki></code> |
||
+ | * [[gww:|Guild Wars Wiki]] - <code><nowiki>[[gww: ]]</nowiki></code> |
||
+ | * [[gw2w:|Guild Wars 2 Wiki]] - <code><nowiki>[[gw2w: ]]</nowiki></code> |
||
+ | |||
+ | ; Wikimedia foundation |
||
+ | * [[wikipedia:|English Wikipedia]] - <code><nowiki>[[wikipedia: ]]</nowiki></code> or <code><nowiki>[[wp: ]]</nowiki></code> |
||
+ | * To link to a foreign-language Wikipedia, include the language code after the <code>wikipedia:</code> prefix, e.g. <code><nowiki>[[wikipedia:de:]]</nowiki></code> for the [[wikipedia:de:|German Wikipedia]]. |
||
⚫ | |||
⚫ | |||
+ | * [[mw:|MediaWiki]] - <code><nowiki>[[mw: ]]</nowiki></code> |
||
== See also == |
== See also == |
||
− | * [[ |
+ | * [[Special:Interwiki]] for a complete listing of GuildWiki's interwiki table. |
− | * [[Help:Interwiki |
+ | * [[mw:Help:Links#Interwiki links|Help on interwiki links]] at the MediaWiki wiki. |
[[Category:GuildWiki]] |
[[Category:GuildWiki]] |
Latest revision as of 17:48, 9 December 2010
Interwiki links are links pointing to external websites using an "internal link" syntax. This is made possible through the interwiki table, which maps a site's URL to a string that can be used as a prefix in the internal link syntax. (Both of the links in this introduction are interwiki links.)
Interwiki syntax[]
To create an interwiki link to a page on another site, use the internal link syntax (double square brackets [[ ]]
) as if linking to the page name locally, but prefix the page name with that site's identifier from the interwiki table. For example, to link to the Guild Wars article on Wikipedia, you would write the link like this:
To create... | ...use this code... | ...which produces this result |
---|---|---|
A link to Wikipedia | [[Wikipedia:Guild Wars]]
|
Wikipedia:Guild Wars |
A shorter link to Wikipedia | [[WP:Guild Wars]]
|
WP:Guild Wars |
A link to Wikipedia with different display text | [[WP:Guild Wars|Guild Wars on Wikipedia]]
|
Guild Wars on Wikipedia |
A link to Wikipedia's main page | [[WP:|Wikipedia's Main Page]]
|
Wikipedia's Main Page |
A site can be defined in the interwiki table with multiple prefixes. As shown in the examples above, Wikipedia can be linked using both the full Wikipedia:
prefix and the shorthand WP:
prefix.
Interwiki prefixes are not case-sensitive, thus wikipedia:
, Wikipedia:
, WikiPedia
, and WIKIPEDIA:
are all interchangeable.
Commonly used interwikis[]
- Guild Wars
- PvX Wiki -
[[pvx: ]]
- Guild Wars Wiki -
[[gww: ]]
- Guild Wars 2 Wiki -
[[gw2w: ]]
- Wikimedia foundation
- English Wikipedia -
[[wikipedia: ]]
or[[wp: ]]
- To link to a foreign-language Wikipedia, include the language code after the
wikipedia:
prefix, e.g.[[wikipedia:de:]]
for the German Wikipedia. - Wikimedia Commons -
[[commons: ]]
- Meta Wikimedia -
[[m: ]]
- MediaWiki -
[[mw: ]]
See also[]
- Special:Interwiki for a complete listing of GuildWiki's interwiki table.
- Help on interwiki links at the MediaWiki wiki.