Manual:Interwiki/ko

인터위키 링크(Interwiki links)는 다른 프로젝트들의 문서로 연결하는 것을 의미하며, 접두사를 이용하는 내부적 링크 방식을 사용합니다.

인터위키 링크는 Wikipedia, Wikibooks, Wikinews 등의 문서로 연결이 가능합니다. 또한 다른 언어의 당신의 위키-프로젝트로도 가능합니다. (See .)

와 같은 링크는 다음과 같은 링크가 됩니다 : Main Page 로 표시되고 위키백과의 메인페이지로 이동합니다.

인터위키를 다른 프로젝트에 링크하기
Interwiki links are hosted in the table of the MediaWiki database. The list is available from the interwikimap property of the meta query API, in other words

기본
Several Wikimedia projects (and others) are ready for interwiki linking by default, so you can use them without editing your database.

The following are some examples of interwiki prefixes which are available by default (Wikipedia is also available, 1.10 and after):

The full list of default interwiki lists is available at

See m:Help:Interwiki linking for complete information on linking from/to Wikimedia projects.

새 웹사이트를 추가하기

 * Interwiki links are set in the  table of the database.
 * To modify these, you will need to edit the database, as below.
 * You might prefer to install an Interwiki extension, which eases the process.

As Wikipedia isn't set up by default prior to version 1.10, you might want to add it (and other projects that you desire).

The examples below show how to set up  as a link to the English Wikipedia.

The idea is to insert a line of the form:

('prefix', 'URL format string', 1, 0)

into the  table.

한줄로 하기
Advanced users may use a single command line, as follows:


 * MySQL와 PostgreSQL

Newer MediaWiki versions require some extra fields such as.

Export, add, re-import
Alternatively, you can use the following multi-step process, which exports the  table, adds a line, then re-imports it:

('w', 'https://en.wikipedia.org/wiki/$1', 1, 0);
 * Export the database table
 * add to the end of the table a line of the following form (using English wikipedia as an example):


 * Import the database table

시험하기
시험하기 환경설정:


 * 당신의 사이트로 가세요,
 * create an article, with the following content:
 * This should display a link to the 'Village pump' page on en.Wikipedia.org (the url )
 * This should display a link to the 'Village pump' page on en.Wikipedia.org (the url )

필드에 대한 설명
데이터베이스 테이블 의 필드에 대해서 상세한 내용은 다음을 따르세요 :


 *  : choose a prefix, which is used for interwiki linking, e.g. "wikipedia" for linking to Wikipedia.
 *  : enter the project's URL, e.g.  for Wikipedia. Don't forget the   as it is replaced with the article's name you are linking to (  links to  ).
 *  : enter the project's URL, e.g.  for Wikipedia. Don't forget the   as it is replaced with the article's name you are linking to (  links to  ).
 *  : 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 w:en:fr:Wikipédia:Accueil). See m:Help:Interwiki linking. Requires a protocol to be specified in.
 *  : "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. Requires a protocol to be specified in.
 *  : URL to the MediaWiki API, e.g.  (optional).
 *  : Database name of the wiki (If locally accessible). May be used (later?) for interwiki transclusions. (optional)

각주
" as it contains a list of known languages and their prefixes. E.g. you want to add your German project, search " " for "Deutsch" and note the prefix "de".

If you know the "right" prefix, edit your database by adding a new line to table :
 *  : language-prefix (e.g. "de" for German), which is listed in " "
 *  : URL to your wiki-project (e.g. )
 *  : same as above "Adding More"
 *  : same as above "Adding More"

Now, you can link an article to the same in other languages. Adding  on your English Main_Page will create a link "Deutsch" below the toolbox, which leads to the Main_Page of the German wiki (Hauptseite).

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:  or set $wgInterwikiMagic to false.

Exporting the interwiki table from a wiki
The interwiki table can be queried through the API:Meta module using.

The following JavaScript code can be used to generate the SQL INSERT statements to fill the interwiki table, when run inside the wiki where that info should be extracted, for example, injecting the code through the browser's developer tools or placing it inside Special:MyPage/ .js and previewing:

같이 보기

 * (produces Special:Interwiki)
 * [//www.mediawiki.org/w/api.php?action=query&meta=siteinfo&siprop=interwikimap MediaWiki.org의 인터위키 지도]
 * [//www.mediawiki.org/w/api.php?action=query&meta=siteinfo&siprop=interwikimap MediaWiki.org의 인터위키 지도]
 * [//www.mediawiki.org/w/api.php?action=query&meta=siteinfo&siprop=interwikimap MediaWiki.org의 인터위키 지도]
 * [//www.mediawiki.org/w/api.php?action=query&meta=siteinfo&siprop=interwikimap MediaWiki.org의 인터위키 지도]
 * [//www.mediawiki.org/w/api.php?action=query&meta=siteinfo&siprop=interwikimap MediaWiki.org의 인터위키 지도]