<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.webos-internals.org/index.php?action=history&amp;feed=atom&amp;title=Manual%3AInterwiki</id>
	<title>Manual:Interwiki - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.webos-internals.org/index.php?action=history&amp;feed=atom&amp;title=Manual%3AInterwiki"/>
	<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Manual:Interwiki&amp;action=history"/>
	<updated>2026-04-15T06:03:40Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>http://wiki.webos-internals.org/index.php?title=Manual:Interwiki&amp;diff=1796&amp;oldid=prev</id>
		<title>Rboatright: 1 revision(s)</title>
		<link rel="alternate" type="text/html" href="http://wiki.webos-internals.org/index.php?title=Manual:Interwiki&amp;diff=1796&amp;oldid=prev"/>
		<updated>2009-07-23T01:43:43Z</updated>

		<summary type="html">&lt;p&gt;1 revision(s)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''Interwiki links''' are links to pages of other projects, using a prefixed internal link style.&lt;br /&gt;
&lt;br /&gt;
Interwiki links make it possible, to link to pages of (e.g.) Wikipedia, Wikibooks, Wikinews etc. or to your wiki-project in different languages (see [[Manual:Wiki family]]). &lt;br /&gt;
&lt;br /&gt;
A link like &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[Wikipedia:Main Page]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; will appear like this: [[Wikipedia:Main Page]] and redirect you to Wikipedia's Main Page. &lt;br /&gt;
&lt;br /&gt;
==Interwiki links to other projects==&lt;br /&gt;
===Default===&lt;br /&gt;
Several Wikimedia-Projects (and others) are ready for interwiki linking by default, so you can use them without editing your database. Note that wikipedia was only added as one of the interwiki defaults since v1.10&lt;br /&gt;
&lt;br /&gt;
The following are some examples of interwiki prefixes which are available by default:&lt;br /&gt;
{| {{prettytable}}&lt;br /&gt;
|{{Hl3}} align=&amp;quot;center&amp;quot;|'''prefix'''&lt;br /&gt;
|{{Hl3}} align=&amp;quot;center&amp;quot;|'''destination URL'''&lt;br /&gt;
|{{Hl3}} align=&amp;quot;center&amp;quot;|'''usage example'''&lt;br /&gt;
|-&lt;br /&gt;
|commons&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;http://commons.wikimedia.org/wiki/&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[commons:MediaWiki]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|mediazilla&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;http://bugzilla.wikimedia.org/&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[mediazilla:1209]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|meta&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;http://meta.wikimedia.org/wiki/&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[meta:Main Page]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|mw&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;http://www.mediawiki.org/wiki/&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[mw:Help:Contents]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|wikibooks&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;http://en.wikibooks.org/wiki/&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[wikibooks:Main Page]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|wikimedia&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;http://wikimediafoundation.org/wiki/&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[wikimedia:Main Page]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|wikinews&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;http://en.wikinews.org/wiki/&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[wikinews:Main Page]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|wikiquote&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;http://en.wikiquote.org/wiki/&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[wikiquote:Main Page]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|wikisource&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;http://en.wikisource.org/wiki/&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[wikisource:Main Page]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|wikispecies&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;http://species.wikimedia.org/wiki/&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[wikispecies:Main Page]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|wiktionary&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;http://en.wiktionary.org/wiki/&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;  &amp;lt;nowiki&amp;gt;[[wiktionary:Main Page]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|wikipedia&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;http://en.wikipedia.org/wiki/&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;  &amp;lt;nowiki&amp;gt;[[wikipedia:Main Page]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{{Note|In some installations none of these is pre-installed. Try &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[metawikipedia:Main Page]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; in this case.}}&lt;br /&gt;
&lt;br /&gt;
===Adding a new website for interwiki linking===&lt;br /&gt;
* Interwiki links are set in the &amp;lt;code&amp;gt;interwiki&amp;lt;/code&amp;gt; table of the database.&lt;br /&gt;
* To modify these, you will need to edit the database, as below.&lt;br /&gt;
* You might prefer to install an [[:Category:Interwiki extensions|Interwiki extension]], which eases the process.&lt;br /&gt;
&lt;br /&gt;
As the Wikipedia isn't set up by default in version 1.9 and before, you might want to add it (and other projects that you desire).&lt;br /&gt;
&lt;br /&gt;
The examples below show how to set up &amp;lt;code&amp;gt;w:&amp;lt;/code&amp;gt; as a link to the English Wikipedia.&lt;br /&gt;
&lt;br /&gt;
The idea is to insert a line of the form:&lt;br /&gt;
&amp;lt;pre&amp;gt;('prefix', 'URL format string', 1, 0)&amp;lt;/pre&amp;gt;&lt;br /&gt;
into the &amp;lt;code&amp;gt;interwiki&amp;lt;/code&amp;gt; table.&lt;br /&gt;
&lt;br /&gt;
====Single line====&lt;br /&gt;
Advanced users may use a single command line, as follows:&lt;br /&gt;
* mySQL&lt;br /&gt;
&amp;lt;pre&amp;gt;INSERT INTO interwiki SET iw_prefix='w', iw_url='http://en.wikipedia.org/wiki/$1', iw_local=1, iw_trans=0 ;&amp;lt;/pre&amp;gt;&lt;br /&gt;
* PostgreSQL&lt;br /&gt;
&amp;lt;pre&amp;gt;INSERT INTO interwiki (iw_prefix, iw_url, iw_local, iw_trans) VALUES ('w', 'http://en.wikipedia.org/wiki/$1', 1, 0);&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====Export, add, re-import====&lt;br /&gt;
Alternatively, you can use the following multi-step process, which exports the &amp;lt;tt&amp;gt;interwiki&amp;lt;/tt&amp;gt; table, adds a line, then re-imports it:&lt;br /&gt;
&lt;br /&gt;
* Export the database table &amp;lt;code&amp;gt;interwiki&amp;lt;/code&amp;gt;&lt;br /&gt;
* add to the end of the table a line of the following form (using kayakwiki for example):&lt;br /&gt;
&amp;lt;pre&amp;gt;('w', 'http://en.wikipedia.org/wiki/$1', 1, 0);&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{Note|in the above code, the semicolon ';' as seen, MUST be at the end of the table. At the end of any other line within that table Only has ','.}}&lt;br /&gt;
* Import the database table &amp;lt;code&amp;gt;interwiki&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
====To test====&lt;br /&gt;
To test configuration:&lt;br /&gt;
* Go to your site,&lt;br /&gt;
* create an article, with the following content:&lt;br /&gt;
*: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[w:Wikipedia:Village pump|]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
* This should display a link to the 'Village pump' page on en.Wikipedia.org (the url &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://en.wikipedia.org/wiki/Wikipedia:Village_pump&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
====Field documentation====&lt;br /&gt;
In detail, the fields of the &amp;lt;code&amp;gt;interwiki&amp;lt;/code&amp;gt; database table are as follows:&lt;br /&gt;
*'''&amp;lt;code&amp;gt;iw_prefix&amp;lt;/code&amp;gt;''': choose a prefix, which is used for interwiki linking, e.g. &amp;quot;wikipedia&amp;quot; for linking to Wikipedia. &lt;br /&gt;
*:{{Note|Prefixes '''must''' be all lower-case.}}&lt;br /&gt;
*'''&amp;lt;code&amp;gt;iw_url&amp;lt;/code&amp;gt;''': enter the project's URL, e.g. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://en.wikipedia.org/wiki/$1&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; for Wikipedia. Don't forget the &amp;lt;code&amp;gt;$1&amp;lt;/code&amp;gt; as it is replaced with the article's name you are linking to (&amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[Wikipedia:Main Page]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; links to &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://en.wikipedia.org/wiki/&amp;lt;/nowiki&amp;gt;'''Main_Page'''&amp;lt;/code&amp;gt;).&amp;lt;br/&amp;gt;&lt;br /&gt;
*:{{Note|If iw_url is a binary BLOB field (SVN version, but also occurs in version 1.11.0, bug?) this won't work directly. You have to enter it as binary. There are two possible solutions: 1. You save the url in a plain text file, then import it through phpmyadmin. 2. You can directly enter an SQL query.}}  &lt;br /&gt;
 &lt;br /&gt;
*'''&amp;lt;code&amp;gt;iw_local&amp;lt;/code&amp;gt;''': if 1, your wiki will redirect even external links of the form iw_prefix:title, not only those from its own pages. you need this if you want to use the redirect functionality from outside your wiki or other wikis use your transwiki functions for nested transwiki links (like http://en.wikipedia.org/wiki/fr:Accueil)&lt;br /&gt;
*'''&amp;lt;code&amp;gt;iw_trans&amp;lt;/code&amp;gt;''': &amp;quot;transwiki transclusion&amp;quot; - set to 1 if you want to use pages from the other wiki as templates.  You will also need to set [[Manual:$wgEnableScaryTranscluding|$wgEnableScaryTranscluding = true]] in your ''LocalSettings.php''&lt;br /&gt;
&lt;br /&gt;
{{admin tip|tip=&lt;br /&gt;
Several help pages link to MediaWiki.org's ''Manual'' namespace.  To make these links work on your local wiki, add an interwiki link with ''iw_prefix=manual'' and ''iw_url=&amp;lt;nowiki&amp;gt;http:&amp;lt;/nowiki&amp;gt;//www.mediawiki.org/wiki/Manual:$1''&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==Interwiki links to other languages==&lt;br /&gt;
[[Image:M-en-interwiki lang.png|thumb|Interwiki links to other languages]]&lt;br /&gt;
If you have installed a [[Manual:Wiki family|Wiki family]], you can link from an article in English to an article in German (if you have a German project, too). You can set up MediaWiki, to show those links in the sidebar, just below the toolbox.&lt;br /&gt;
&lt;br /&gt;
In your filesystem, there is a subfolder of your MediaWiki installation, called &amp;quot;languages&amp;quot;. Go there and have a look at &amp;quot;&amp;lt;code&amp;gt;Names.php&amp;lt;/code&amp;gt;&amp;quot; as it contains a list of known languages and their prefixes. E.g. you want to add your German project, search &amp;quot;&amp;lt;code&amp;gt;Names.php&amp;lt;/code&amp;gt;&amp;quot; for &amp;quot;Deutsch&amp;quot; and note the prefix &amp;quot;de&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
If you know the &amp;quot;right&amp;quot; prefix, edit your database by adding a new line to table &amp;lt;code&amp;gt;interwiki&amp;lt;/code&amp;gt;:&lt;br /&gt;
*'''&amp;lt;code&amp;gt;iw_prefix&amp;lt;/code&amp;gt;''': language-prefix (e.g. &amp;quot;de&amp;quot; for German), which is listed in &amp;quot;&amp;lt;code&amp;gt;Names.php&amp;lt;/code&amp;gt;&amp;quot;&lt;br /&gt;
*'''&amp;lt;code&amp;gt;iw_url&amp;lt;/code&amp;gt;''': URL to your wiki-project (e.g. &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;http://de.your-wiki.org/index.php/$1&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;)&lt;br /&gt;
*'''&amp;lt;code&amp;gt;iw_local&amp;lt;/code&amp;gt;''': ''same as above &amp;quot;Adding More&amp;quot;''&lt;br /&gt;
*'''&amp;lt;code&amp;gt;iw_trans&amp;lt;/code&amp;gt;''': ''same as above &amp;quot;Adding More&amp;quot;''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now, you can link an article to the same in other languages. Adding &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[de:Hauptseite]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; on your english Main_Page will create a link &amp;quot;Deutsch&amp;quot; below the toolbox, which leads to the Main_Page of the German wiki (Hauptseite).&lt;br /&gt;
&lt;br /&gt;
Note, that this link is shown in Sidebar's section, '''only''', and not inside of the article. If you want to create a link inside of the text, you have to add a colon previous to the prefix: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[[:de:Hauptseite]]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Help:Links]]&lt;br /&gt;
* [[Extension:SpecialInterwiki]]&lt;br /&gt;
* [[Manual:Guide to setting up interwiki linking]]&lt;br /&gt;
{{meta|Help:Interwiki linking}}&lt;br /&gt;
&lt;br /&gt;
{{Languages|Manual:Interwiki}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Interwiki]]&lt;/div&gt;</summary>
		<author><name>Rboatright</name></author>
	</entry>
</feed>