Extension:Interwiki/ja


 * この拡張機能と Extension:InterWiki/ja を混同しないようにご注意ください. 

この拡張機能はWiki内にSpecial:Interwikiなる特別ページを追加し、インターウィキ表を可視化し、MediaWiki内からそれを編集することができます. It was made by Stephanie Amanda Stevens a.k.a Phroziac, because she was annoyed at forgetting the interwiki prefixes.

Since Interwiki version 2.1, it works with the $wgInterwikiCache, and the CSS uses ResourceLoader. This version is only compatible with MW 1.19+.

The list of Special:Interwiki is identical to the API action=query&meta=siteinfo&siprop=interwikimap.

ダウンロード
These are recommended versions to use per MediaWiki version. If the recommended version does not work with a certain MediaWiki version, please let us know. Click the "(snapshot)" link to the right of your MediaWiki version in the table below.

Optionally,

インストール
To enable transclusion from other sites, you'll need to enable

To disable adding prefixes through the Special:Interwiki interface, set $wgInterwikiViewOnly to true.

言語間リンクの設定
To set up interlanguage links using this extension, make sure that $wgInterwikiMagic is set to true and $wgHideInterlanguageLinks is set to false (they are like this by default, you don't need to change them usually). Then go to Special:Interwiki as a user with the appropriate permissions. For example, if the French version of your wiki was located at  http://fr.foowiki.tld/wiki/ , you could add  http://fr.foowiki.tld/wiki/$1  to the interwiki table with values trans 0 and local 0. Then the interlanguage link to the French version would work, but a #REDIRECT to a French-language page from a page in some other language would be refused.

See Manual:Interwiki table/ja for a full explanation of the forward (iw_local) and transclude (iw_trans) bits.

In brief:
 * Enabling forwarding ('local' true) is normally done between all languages and projects in the same group, as it allows a link to any one of the languages to be used as a gateway to the others. The English-language Wikipedia, for instance, sets the 'local' bit true for all of the other-language Wikipedias and for projects like commons:, wikinews: or wikivoyage:. A user on a wiki outside Wikipedia where the wikipedia: interwiki prefix points to en.wikipedia.org could create a link like Encyclopédie. That link goes initially to "fr:Encyclopédie" on the English-language Wikipedia. The en.wikipedia server immediately recognises fr: as a 'local' interwiki link, so replies with a redirect to la Wikipédia where fr.wikipedia.org/wiki/Encyclopédie displays the requested French-language Wikipédia page Encyclopédie et voilà.
 * Enabling transclusion is rarely done, as it allows an article on one wiki to use templates from some other wiki. This is referred to as 'scary transclusion' as it will cause problems if the other wiki changes the template unexpectedly. A few wiki farms use this to create one 'central wiki' with various templates which are made available to other wikis in the same farm. If you don't need this, don't enable it.

相対プロトコル URL
MediaWiki は、バージョン 1.18 以降、相対プロトコル URL (PRURL: Protocol-Relative URL) に対応しています. PRURL を使用するには、単に、デフォルトのリンク テーブルから  を除去してください. 除去する前に、サーバーが HTTP に対応しているか必ず確認してください. 例えば、この

http://en.wikipedia.org/wiki/$1

の場合は、以下のように変更します:

//en.wikipedia.org/wiki/$1

関連項目

 * Extension:Interwiki/Sites using this extension
 * Extension:InterWiki/ja