Manual:interwiki table

From MediaWiki.org
(Redirected from Interwiki table)
Jump to: navigation, search
Manual:ContentsManual:Contents MediaWiki database layoutManual:Database layout interwiki table


The interwiki table stores the interwiki prefixes with their targets. See default interwiki prefixes. The interwiki links themselves are stored in the iwlinks table.

Fields[edit]

iw_prefix[edit]

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

iw_url[edit]

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

iw_api[edit]

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[edit]

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

iw_local[edit]

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.

iw_trans[edit]

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

Schema summary[edit]

MediaWiki version: 1.17

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


MediaWiki versions: 1.10 – 1.16

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


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

See also[edit]

DatabasesManual:Database layout Engines: MySQL/MariaDBManual:MySQLOracleManual:OraclePostgreSQLManual:PostgreSQLSQLiteManual:SQLiteSQL ServerManual:Microsoft SQL Server

Technical documentation: SchemaManual:Database layout (tablesCategory:MediaWiki database tables) – API property associationsAPI:Database field and API property associationsField prefixesDatabase field prefixesPrimary key storage in other fieldsManual:Primary key storage in other fieldsWikimedia extension tablesCategory:Wikimedia extension database tables
Configuration: SettingsManual:Configuration_settings#Database_settingsSharingManual:Shared database
Development: AccessManual:Database accessOptimizationDatabase optimizationPolicyDevelopment policy#Database_patchesUpdaterManual:DatabaseUpdater.phpExtension schema updatesManual:Hooks/LoadExtensionSchemaUpdatesPatch fileManual:SQL patch file

Core tables: archivebot_passwordscategorycategorylinkschange_tagcommentconfigexternallinksfilearchivehitcounterimageimagelinksimage_comment_tempinterwikiiwlinksipblocksip_changesjobl10n_cachelanglinkslogginglog_searchmsg_resourcemsg_resource_linksmodule_depsobjectcacheoldimagepagepagelinkspage_propspage_restrictionsprotected_titlesquerycachequerycachetwoquerycache_inforecentchangesredirectrevisionrevision_comment_tempsearchindexsitessite_identifiers - site_statstag_summarytemplatelinkstexttranscacheupdateloguploadstashuseruser_former_groupsuser_groupsuser_newtalkuser_propertiestag_summaryvalid_tagwatchlist
Language:Project:Language policy English  • 日本語 • slovenčina