Editing Help:Interwiki linking
From BRL-CAD
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | |||
'''Interwiki links''' are links to pages of other projects, using a prefixed internal link style. | '''Interwiki links''' are links to pages of other projects, using a prefixed internal link style. | ||
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]]). | 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]]). | ||
− | 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. | + | 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. |
+ | |||
+ | For setting up interwiki links, you might need to edit the Database. | ||
==Interwiki links to other projects== | ==Interwiki links to other projects== | ||
===Default=== | ===Default=== | ||
− | Several Wikimedia-Projects (and others) are ready for interwiki linking by default, so you can use them without editing your database. | + | 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 — the Wikipedia itself — is for some reason missing. |
− | |||
− | |||
{| {{prettytable}} | {| {{prettytable}} | ||
|{{Hl3}} align="center"|'''prefix''' | |{{Hl3}} align="center"|'''prefix''' | ||
− | |{{Hl3}} align="center"|''' | + | |{{Hl3}} align="center"|'''direction''' |
|{{Hl3}} align="center"|'''usage example''' | |{{Hl3}} align="center"|'''usage example''' | ||
|- | |- | ||
Line 21: | Line 20: | ||
|- | |- | ||
|mediazilla | |mediazilla | ||
− | |<nowiki>http://bugzilla. | + | |<nowiki>http://bugzilla.wikipedia.org/</nowiki> |
|<code><nowiki>[[mediazilla:1209]]</nowiki></code> | |<code><nowiki>[[mediazilla:1209]]</nowiki></code> | ||
|- | |- | ||
Line 49: | Line 48: | ||
|- | |- | ||
|wikisource | |wikisource | ||
− | |<nowiki>http:// | + | |<nowiki>http://sources.wikipedia.org/wiki/</nowiki> |
|<code><nowiki>[[wikisource:Main Page]]</nowiki></code> | |<code><nowiki>[[wikisource:Main Page]]</nowiki></code> | ||
|- | |- | ||
|wikispecies | |wikispecies | ||
− | |<nowiki>http://species. | + | |<nowiki>http://species.wikipedia.org/wiki/</nowiki> |
|<code><nowiki>[[wikispecies:Main Page]]</nowiki></code> | |<code><nowiki>[[wikispecies:Main Page]]</nowiki></code> | ||
|- | |- | ||
Line 59: | Line 58: | ||
|<nowiki>http://en.wiktionary.org/wiki/</nowiki> | |<nowiki>http://en.wiktionary.org/wiki/</nowiki> | ||
|<code> <nowiki>[[wiktionary:Main Page]]</nowiki></code> | |<code> <nowiki>[[wiktionary:Main Page]]</nowiki></code> | ||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
|} | |} | ||
− | + | ===Adding more=== | |
− | + | As the Wikipedia isn't set up by default, you might want to add it (and other projects of your need). | |
− | ===Adding | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | You have to edit your own database. | |
− | + | Go to table <code>interwiki</code> and add a new line: | |
− | + | *'''<code>iw_prefix</code>''': choose a prefix, which is used for interwiki linking, e.g. "Wikipedia" or "wp" for linking to Wikipedia | |
− | *'''<code>iw_prefix</code>''': choose a prefix, which is used for interwiki linking, e.g. " | + | *'''<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>). |
− | |||
− | *'''<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>). | ||
− | |||
− | |||
*'''<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) | *'''<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) | ||
− | *'''<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 | + | *'''<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'' |
{{admin tip|tip= | {{admin tip|tip= | ||
− | 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= | + | 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'' |
}} | }} | ||
Line 112: | Line 91: | ||
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>. | 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>. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
[[Category:Help|Interwiki linking]] | [[Category:Help|Interwiki linking]] | ||
− |