Interwiki links

From WikiEducator
Jump to: navigation, search

Interwiki links provide a shorthand method to link to pages in other wikis administered by the Wikimedia Foundation, including for example:

This shorthand method provides an easy way to link to the target pages of the English versions of these wikis without typing out the full URL for the page concerned. This is a special feature of the Mediawiki software which powers WikiEducator and the wiki sites listed above. From a technical point of view, this feature enables these external links to be treated as internal links in WikiEducator.

Icon casestudy.gif
How to link to the article "Cat" in Wikipedia using an interwiki link

The full URL for the article on cats in Wikipedia is:

An interwiki link provides a shorthand version of the link address. In the case of the English Wikipedia, inserting the prefix "w:" (or "wikipedia:") before the article name, will create a link to that page as if it were an internal link.

Therefore, the link address w:cat will link directly to cat avoiding the need to type out the full URL address:

Using an interwiki link can save time when linking to pages in these wikis.

Summary of shorthand web addresses for interwiki links

The following table gives examples of the interwiki prefixes that are available on WikiEducator.

Interwiki Wiki Destination URL Shorthand link address Link example
  • w:Cat or
  • wikipedia:Cat
  • b:Anatomy_and_Physiology_of_Animals or
  • wikibooks:Anatomy_and_Physiology_of_Animals
Anatomy and Physiology of Animals
  • v:Free_and_open_educational_resources or
  • wikiversity:Free_and_open_educational_resources
Free and open educational resources
  • q:Mohandas_Karamchand_Gandhi or
  • wikiquote:Mohandas_Karamchand_Gandhi
Mohandas Karamchand Gandhi
  • wikt:laud
  • wiktionary:laud
  • mw:MediaWiki

The interwiki link method is shorter and more convenient once you are familiar with adding the correct prefix.

Creating an interwiki link using the Rich Editor toolbar

Like other internal links, interwiki links are created using the Insert/Edit Link button and the Links dialog box.

Icon activity.jpg
Create an interwiki link

Using the following instructions, create an interwiki link on your sandbox page to the Wikipedia article on dogs:

  1. Click on the link to your user page (remember it's located in the top right of the screen) and open your sandbox page (For example: My sandbox).
  2. Click the edit tab and enable the Rich Editor, if it is disabled.
  3. Type the word "Dog" in the edit preview window.
  4. Highlight the word "Dog".
  5. Click on the Insert/Edit Link button of the Rich Editor toolbar.
  6. Type "w:Dog" in the Link text field. (Note that the wiki is case sensitive; the name of the article is "Dog", with a capitalised 'D'.)
  7. Complete the creation of the link as you would any other wiki link.
  8. Practice creating a few more interwiki links
    • Visit one of the listed external wikis to find a target page.
    • Use the shorthand syntax table above to create the relevant address.
    • Create the interwiki link in your sandbox.
    • Click on the link to see if it works as desired.