A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:langlinks_table below:

Manual:langlinks table - MediaWiki

The langlinks table tracks Interlanguage links .

This table is used for displaying pages, as a quick means to find the links that typically appear in the left margin, underneath the navigational and toolbox links. Without this table, MediaWiki would have to parse through the wikitext for each page display. The table has a primary key on page (ll_from) and target language (ll_lang), so each page can only store one link per language.

The table has three columns: ll_from (an integer), ll_lang (35 characters), ll_title (255 characters). If the wiki page "Sweden" contains the interlanguage link [[fr:Suède]], then ll_from will indicate the page Sweden where the link goes from, ll_lang will be "fr" and ll_title will be "Suède". In February 2009 for the Swedish language Wikipedia, this table has 3.2 million rows, of which 145,000 (4.5 %) have ll_lang "fr".

As a side effect of having this table, you can:

page_id of the referring page.

Language code of the target, in the ISO 639-1 standard.

Title of the target, including namespace (FULLPAGENAMEE style).

DESCRIBE langlinks;

+----------+------------------+------+-----+---------+-------+
| Field    | Type             | Null | Key | Default | Extra |
+----------+------------------+------+-----+---------+-------+
| ll_from  | int(10) unsigned | NO   | PRI | 0       |       |
| ll_lang  | varbinary(35)    | NO   | PRI |         |       |
| ll_title | varbinary(255)   | NO   |     |         |       |
+----------+------------------+------+-----+---------+-------+
MediaWiki versions:

1.10 – 1.34

DESCRIBE langlinks;

+----------+------------------+------+-----+---------+-------+
| Field    | Type             | Null | Key | Default | Extra |
+----------+------------------+------+-----+---------+-------+
| ll_from  | int(10) unsigned | NO   | PRI | 0       |       |
| ll_lang  | varbinary(20)    | NO   | PRI |         |       |
| ll_title | varbinary(255)   | NO   |     |         |       |
+----------+------------------+------+-----+---------+-------+
MediaWiki versions:

1.7 – 1.9

DESCRIBE langlinks;

+----------+---------------------+------+-----+---------+-------+
| Field    | Type                | Null | Key | Default | Extra |
+----------+---------------------+------+-----+---------+-------+
| ll_from  | int(8) unsigned     | NO   | PRI | 0       |       |
| ll_lang  | varchar(10) binary  | NO   | PRI | NULL    |       |
| ll_title | varchar(255) binary | NO   |     | NULL    |       |
+----------+---------------------+------+-----+---------+-------+
MediaWiki version:

1.30

SHOW INDEX IN langlinks;

+-----------+------------+----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
| Table     | Non_unique | Key_name | Seq_in_index | Column_name | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment |
+-----------+------------+----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+
| langlinks |          0 | PRIMARY  |            1 | ll_from     | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
| langlinks |          0 | PRIMARY  |            2 | ll_lang     | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
| langlinks |          1 | ll_lang  |            1 | ll_lang     | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
| langlinks |          1 | ll_lang  |            2 | ll_title    | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
+-----------+------------+----------+--------------+-------------+-----------+-------------+----------+--------+------+------------+---------+---------------+

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4