https://wiki.bzflag.org/index.php?title=Help:Interwiki_linking&feed=atom&action=historyHelp:Interwiki linking - Revision history2024-03-28T20:45:59ZRevision history for this page on the wikiMediaWiki 1.26.3https://wiki.bzflag.org/index.php?title=Help:Interwiki_linking&diff=9374&oldid=prevZehra: improved content2017-02-04T00:23:39Z<p>improved content</p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;' lang='en'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 00:23, 4 February 2017</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l3" >Line 3:</td>
<td colspan="2" class="diff-lineno">Line 3:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>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]]).  </div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>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]]).  </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>A link like <code><nowiki>[[<del class="diffchange diffchange-inline">Wikipedia</del>:<del class="diffchange diffchange-inline">Main Page</del>]]</nowiki></code> will appear like this: [[<del class="diffchange diffchange-inline">Wikipedia</del>:<del class="diffchange diffchange-inline">Main Page</del>]] and redirect you to <del class="diffchange diffchange-inline">Wikipedia</del>'s <del class="diffchange diffchange-inline">Main </del>Page.</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>A link like <code><nowiki>[[<ins class="diffchange diffchange-inline">BZFlagWiki</ins>:<ins class="diffchange diffchange-inline">About</ins>]]</nowiki></code> will appear like this: [[<ins class="diffchange diffchange-inline">BZFlagWiki</ins>:<ins class="diffchange diffchange-inline">About</ins>]] and redirect you to <ins class="diffchange diffchange-inline">BZFlagWiki</ins>'s <ins class="diffchange diffchange-inline">About </ins>Page.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>For setting up interwiki links, you might need to edit the Database.</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>For setting up interwiki links, you might need to edit the Database.</div></td></tr>
</table>Zehrahttps://wiki.bzflag.org/index.php?title=Help:Interwiki_linking&diff=483&oldid=prev12.40.150.35 at 20:48, 19 February 20072007-02-19T20:48:57Z<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;' lang='en'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 20:48, 19 February 2007</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l91" >Line 91:</td>
<td colspan="2" class="diff-lineno">Line 91:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>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: <code><nowiki>[[:de:Hauptseite]]</nowiki></code>.</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>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: <code><nowiki>[[:de:Hauptseite]]</nowiki></code>.</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;"></del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">{{Languages|Help:Interwiki linking}}</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>[[Category:Help|Interwiki linking]]</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>[[Category:Help|Interwiki linking]]</div></td></tr>
</table>12.40.150.35https://wiki.bzflag.org/index.php?title=Help:Interwiki_linking&diff=482&oldid=prev12.40.150.35 at 20:48, 19 February 20072007-02-19T20:48:36Z<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;' lang='en'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 20:48, 19 February 2007</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1" >Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div><del style="font-weight: bold; text-decoration: none;">{{PD Help Page}}</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>'''Interwiki links''' are links to pages of other projects, using a prefixed internal link style.</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>'''Interwiki links''' are links to pages of other projects, using a prefixed internal link style.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
</table>12.40.150.35https://wiki.bzflag.org/index.php?title=Help:Interwiki_linking&diff=82&oldid=prevJoevano: 1 revision(s)2007-02-10T21:13:27Z<p>1 revision(s)</p>
<table class='diff diff-contentalign-left'>
<tr style='vertical-align: top;' lang='en'>
<td colspan='1' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='1' style="background-color: white; color:black; text-align: center;">Revision as of 21:13, 10 February 2007</td>
</tr><tr><td colspan='2' style='text-align: center;' lang='en'><div class="mw-diff-empty">(No difference)</div>
</td></tr></table>Joevanohttps://wiki.bzflag.org/index.php?title=Help:Interwiki_linking&diff=81&oldid=prev125.16.200.150: /* Adding more */2007-01-23T09:35:04Z<p><span dir="auto"><span class="autocomment">Adding more</span></span></p>
<p><b>New page</b></p><div>{{PD Help Page}}<br />
'''Interwiki links''' are links to pages of other projects, using a prefixed internal link style.<br />
<br />
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]]). <br />
<br />
A link like <code><nowiki>[[Wikipedia:Main Page]]</nowiki></code> will appear like this: [[Wikipedia:Main Page]] and redirect you to Wikipedia's Main Page.<br />
<br />
For setting up interwiki links, you might need to edit the Database.<br />
<br />
==Interwiki links to other projects==<br />
===Default===<br />
Several Wikimedia-Projects (and others) are ready for interwiki linking by default, so you can use them without editing your database. However, the mother of all Wikimedia-projects &mdash; the Wikipedia itself &mdash; is for some reason missing.<br />
{| {{prettytable}}<br />
|{{Hl3}} align="center"|'''prefix'''<br />
|{{Hl3}} align="center"|'''direction'''<br />
|{{Hl3}} align="center"|'''usage example'''<br />
|-<br />
|commons<br />
|<nowiki>http://commons.wikimedia.org/wiki/</nowiki><br />
|<code><nowiki>[[commons:MediaWiki]]</nowiki></code><br />
|-<br />
|mediazilla<br />
|<nowiki>http://bugzilla.wikipedia.org/</nowiki><br />
|<code><nowiki>[[mediazilla:1209]]</nowiki></code><br />
|-<br />
|meta<br />
|<nowiki>http://meta.wikimedia.org/wiki/</nowiki><br />
|<code><nowiki>[[meta:Main Page]]</nowiki></code><br />
|-<br />
|mw<br />
|<nowiki>http://www.mediawiki.org/wiki/</nowiki><br />
|<code><nowiki>[[mw:Help:Contents]]</nowiki></code><br />
|-<br />
|wikibooks<br />
|<nowiki>http://en.wikibooks.org/wiki/</nowiki><br />
|<code><nowiki>[[wikibooks:Main Page]]</nowiki></code><br />
|-<br />
|wikimedia<br />
|<nowiki>http://wikimediafoundation.org/wiki/</nowiki><br />
|<code><nowiki>[[wikimedia:Main Page]]</nowiki></code><br />
|-<br />
|wikinews<br />
|<nowiki>http://en.wikinews.org/wiki/</nowiki><br />
|<code><nowiki>[[wikinews:Main Page]]</nowiki></code><br />
|-<br />
|wikiquote<br />
|<nowiki>http://en.wikiquote.org/wiki/</nowiki><br />
|<code><nowiki>[[wikiquote:Main Page]]</nowiki></code><br />
|-<br />
|wikisource<br />
|<nowiki>http://sources.wikipedia.org/wiki/</nowiki><br />
|<code><nowiki>[[wikisource:Main Page]]</nowiki></code><br />
|-<br />
|wikispecies<br />
|<nowiki>http://species.wikipedia.org/wiki/</nowiki><br />
|<code><nowiki>[[wikispecies:Main Page]]</nowiki></code><br />
|-<br />
|wiktionary<br />
|<nowiki>http://en.wiktionary.org/wiki/</nowiki><br />
|<code> <nowiki>[[wiktionary:Main Page]]</nowiki></code><br />
|-<br />
|}<br />
<br />
===Adding more===<br />
As the Wikipedia isn't set up by default, you might want to add it (and other projects of your need).<br />
<br />
You have to edit your own database. <br />
Go to table <code>interwiki</code> and add a new line:<br />
*'''<code>iw_prefix</code>''': choose a prefix, which is used for interwiki linking, e.g. "Wikipedia" or "wp" for linking to Wikipedia<br />
*'''<code>iw_url</code>''': enter the project's URL, e.g. <code><nowiki>http://en.wikipedia.org/wiki/$1</nowiki></code> for Wikipedia. Don't forget the <code>$1</code> as it is replaced with the article's name you are linking to (<code><nowiki>[[Wikipedia:Main Page]]</nowiki></code> links to <code><nowiki>http://en.wikipedia.org/wiki/</nowiki>'''Main_Page'''</code>).<br />
*'''<code>iw_local</code>''': 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)<br />
*'''<code>iw_trans</code>''': "transwiki transclusion" - set to 1 if you want to use pages from the other wiki as templates. You will also need to set ''$wgEnableScaryTranscluding = true'' in your ''LocalSettings.php''<br />
<br />
{{admin tip|tip=<br />
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=http://www.mediawiki.org/wiki/Manual:$1''<br />
}}<br />
<br />
==Interwiki links to other languages==<br />
[[Image:M-en-interwiki lang.png|thumb|Interwiki links to other languages]]<br />
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.<br />
<br />
In your filesystem, there is a subfolder of your MediaWiki installation, called "languages". Go there and have a look at "<code>Names.php</code>" as it contains a list of known languages and their prefixes. E.g. you want to add your German project, search "<code>Names.php</code>" for "Deutsch" and note the prefix "de".<br />
<br />
If you know the "right" prefix, edit your database by adding a new line to table <code>interwiki</code>:<br />
*'''<code>iw_prefix</code>''': language-prefix (e.g. "de" for German), which is listed in "<code>Names.php</code>"<br />
*'''<code>iw_url</code>''': URL to your wiki-project (e.g. <code><nowiki>http://de.your-wiki.org/index.php/$1</nowiki></code>)<br />
*'''<code>iw_local</code>''': ''same as above "Adding More"''<br />
*'''<code>iw_trans</code>''': ''same as above "Adding More"''<br />
<br />
<br />
Now, you can link an article to the same in other languages. Adding <code><nowiki>[[de:Hauptseite]]</nowiki></code> on your english Main_Page will create a link "Deutsch" below the toolbox, which leads to the Main_Page of the German wiki (Hauptseite).<br />
<br />
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: <code><nowiki>[[:de:Hauptseite]]</nowiki></code>.<br />
<br />
{{Languages|Help:Interwiki linking}}<br />
<br />
[[Category:Help|Interwiki linking]]</div>125.16.200.150