Manual:Interwiki table/ja

interwiki テーブルは、接頭辞とそのターゲットを保持します. 既定のインターウィキ接頭辞を参照してください. インターウィキ リンク自身は テーブルに格納されます.

iw_prefix
The prefix of the interwiki link; this is used the same way as a namespace is used when editing.

iw_url
The target of the link; the page name is substituted for $1.

iw_api
The URL of the file. This is not used except by, when an interwiki map is requested via.

iw_wikiid
The name of the database (for a connection to be established with )

iw_local
Informs MediaWiki how it should treat interwiki links coming from external sources. If iw_local is 1, then it will treat these links as though they were generated from within the local wiki.
 * For example, the interwiki link fr: on the en.wikipedia.org project has iw_local=1 set.

Therefore, the link to http://en.wikipedia.org/wiki/fr:Accueil gracefully redirects you to the French Homepage (Accueil). However, the WorldCat ISSN catalog is flagged 0 on en.wikipedia.org; the link to https://en.wikipedia.org/wiki/issn:1021-9749 does not work, even though 1021-9749 would work if it were on a local Wikipedia page. See m:Help:Interwiki linking#Non-local interwikis.

iw_trans
This is used to allow transcluding templates (or other pages) from another MediaWiki installation. Both  and   need to be on.

スキーマの要約
DESCRIBE interwiki; +---+-+--+-+-+---+ +---+-+--+-+-+---+ +---+-+--+-+-+---+
 * Field    | Type        | Null | Key | Default | Extra |
 * iw_prefix | varchar(32) | NO  | PRI | NULL    |       |
 * iw_url   | blob        | NO   |     | NULL    |       |
 * iw_api   | blob        | NO   |     | NULL    |       |
 * iw_wikiid | varchar(64) | NO  |     | NULL    |       |
 * iw_local | bool        | NO   |     | NULL    |       |
 * iw_trans | tinyint(1)  | NO   |     | 0       |       |

DESCRIBE interwiki; +---+-+--+-+-+---+ +---+-+--+-+-+---+ +---+-+--+-+-+---+
 * Field    | Type        | Null | Key | Default | Extra |
 * iw_prefix | varchar(32) | NO  | PRI | NULL    |       |
 * iw_url   | blob        | NO   |     | NULL    |       |
 * iw_local | bool        | NO   |     | NULL    |       |
 * iw_trans | tinyint(1)  | NO   |     | 0       |       |

DESCRIBE interwiki; +---++--+-+-+---+ +---++--+-+-+---+ +---++--+-+-+---+
 * Field    | Type       | Null | Key | Default | Extra |
 * iw_prefix | char(32)  | NO   | PRI | NULL    |       |
 * iw_url   | char(127)  | NO   |     | NULL    |       |
 * iw_local | bool       | NO   |     | NULL    |       |
 * iw_trans | tinyint(1) | NO   |     | 0       |       |

DESCRIBE interwiki; +---++--+-+-+---+ +---++--+-+-+---+ +---++--+-+-+---+
 * Field    | Type       | Null | Key | Default | Extra |
 * iw_prefix | char(32)  | NO   | PRI | NULL    |       |
 * iw_url   | char(127)  | NO   |     | NULL    |       |
 * iw_local | bool       | NO   |     | NULL    |       |

関連項目

 * - を提供します
 * - 別のウィキのインターウィキ マップから取得したデータでインターウィキ テーブルを数えます
 * [//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 のインターウィキ マップ]