Open main menu

Manual:interwiki table

This page is a translated version of the page Manual:Interwiki table and the translation is 29% complete.

Other languages:
English • ‎dansk • ‎español • ‎slovenčina • ‎العربية • ‎日本語
Manual:Contents MediaWiki database layout interwiki table/sk


Contents

Tabuľka interwiki ukladá interwiki predpony a ich ciele. See default interwiki prefixes. The interwiki links themselves are stored in the iwlinks table. This data can be accessed using the Interwiki class.

Fields

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

MediaWiki version: 1.17

The URL of the file api.php . This is not used except by ApiQuerySiteinfo::appendInterwikiMap(), when an interwiki map is requested via siprop=interwikimap .

iw_wikiid

The name of the database (for a connection to be established with wfGetLB( 'wikiid' ))

iw_local

informuje MediaWiki ako ma nakladať s interwiki odkazmi, ktoré prichádzajú z externých zdrojov. Ak je iw_local rovné 1, tak s týmito odkazmi naloží, ako keby boli generované v rámci miestnej 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 [[issn:1021-9749]] would work if it were on a local Wikipedia page. See m:Help:Interwiki linking#Non-local interwikis.

iw_trans

sa používa na obsiahnutie predlôh (alebo iných stránok) z inej inštalácie MediaWiki. Prepínače $wgEnableScaryTranscluding a iw_trans musia byť zapnuté.

Schema summary

MediaWiki version: 1.17

DESCRIBE interwiki;

+-----------+---------------+------+-----+---------+-------+
| Field     | Type          | Null | Key | Default | Extra |
+-----------+---------------+------+-----+---------+-------+
| iw_prefix | varbinary(32) | NO   | PRI | NULL    |       |
| iw_url    | blob          | NO   |     | NULL    |       |
| iw_api    | blob          | NO   |     | NULL    |       |
| iw_wikiid | varbinary(64) | NO   |     | NULL    |       |
| iw_local  | tinyint(1)    | NO   |     | NULL    |       |
| iw_trans  | tinyint(4)    | NO   |     | 0       |       |
+-----------+---------------+------+-----+---------+-------+
MediaWiki versions: 1.10 – 1.16

DESCRIBE interwiki;

+-----------+---------------+------+-----+---------+-------+
| Field     | Type          | Null | Key | Default | Extra |
+-----------+---------------+------+-----+---------+-------+
| iw_prefix | varbinary(32) | NO   | PRI | NULL    |       |
| iw_url    | blob          | NO   |     | NULL    |       |
| iw_local  | tinyint(1)    | NO   |     | NULL    |       |
| iw_trans  | tinyint(4)    | NO   |     | 0       |       |
+-----------+---------------+------+-----+---------+-------+
MediaWiki versions: 1.5 – 1.9

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       |       |
+-----------+------------+------+-----+---------+-------+
MediaWiki versions: 1.1 – 1.4

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    |       |
+-----------+------------+------+-----+---------+-------+


Pozri taktiež