Manual:Templatelinks table/fr

La table templatelinks contient pour chaque transclusion actuelle, l'id de la page hôte, le numéro de l'espace de noms de la page incluse, et son titre sans l'espace de noms.

La page cible peut exister ou pas, et suite aux renommages et aux suppressions elle peut faire référence à différents enregistrements de la page dans le temps.

Despite the name, transclusions are not limited to templates, nor to the MediaWiki parser's transclusion mechanism; various extensions use this table to mark that they have incorporated content from another page. (E.g. 's  and 's   both record the target page in the templatelinks table.)

tl_from
Clé du de la page qui contient le lien.

tl_namespace
Clé du de la page cible. Utilisé en conjonction avec tl_title.

tl_title
Clé du de la page cible. Utilisé en conjonction avec tl_namespace.

tl_from_namespace
de la page qui contient le lien.

tl_target_id
Clé externe de



Résumé du schéma
+---+-+--+-+-+---+ +---+-+--+-+-+---+ +---+-+--+-+-+---+
 * Field            | Type                | Null | Key | Default | Extra |
 * tl_from          | int(10) unsigned    | NO   | PRI | 0       |       |
 * tl_target_id     | bigint(20) unsigned | NO   | PRI | NULL    |       |
 * tl_from_namespace | int(11)            | NO   | MUL | 0       |       |

+---+-+--+-+-+---+ +---+-+--+-+-+---+ +---+-+--+-+-+---+
 * Field            | Type                | Null | Key | Default | Extra |
 * tl_from          | int(10) unsigned    | NO   | PRI | 0       |       |
 * tl_namespace     | int(11)             | NO   | PRI | 0       |       |
 * tl_title         | varbinary(255)      | NO   | PRI |         |       |
 * tl_from_namespace | int(11)            | NO   | MUL | 0       |       |
 * tl_target_id     | bigint(20) unsigned | YES  | MUL | NULL    |       |

+---+--+--+-+-+---+ +---+--+--+-+-+---+ +---+--+--+-+-+---+
 * Field            | Type             | Null | Key | Default | Extra |
 * tl_from          | int(10) unsigned | NO   | PRI | 0       |       |
 * tl_namespace     | int(11)          | NO   | PRI | 0       |       |
 * tl_title         | varbinary(255)   | NO   | PRI |         |       |
 * tl_from_namespace | int(11)         | NO   | MUL | 0       |       |

+---+--+--+-+-+---+ +---+--+--+-+-+---+ +---+--+--+-+-+---+
 * Field            | Type             | Null | Key | Default | Extra |
 * tl_from          | int(10) unsigned | NO   | PRI | 0       |       |
 * tl_from_namespace | int(11)         | NO   | MUL | 0       |       |
 * tl_namespace     | int(11)          | NO   | PRI | 0       |       |
 * tl_title         | varbinary(255)   | NO   | PRI |         |       |

+---+-+--+-+---+---+ +---+-+--+-+---+---+ +---+-+--+-+---+---+
 * Field            | Type                | Null | Key | Default   | Extra |
 * tl_from          | int(10) unsigned    | NO   | PRI | 0         |       |
 * tl_from_namespace | int(11)            | NO   |     | 0         |       |
 * tl_namespace     | int(11)             | NO   | PRI | 0         |       |
 * tl_title         | varchar(255) binary | NO   | PRI | 0         |       |

+---+-+--+-+---+---+ +---+-+--+-+---+---+ +---+-+--+-+---+---+
 * Field        | Type                | Null | Key | Default   | Extra |
 * tl_from      | int(10) unsigned    | NO   | PRI | 0         |       |
 * tl_namespace | int(11)             | NO   | PRI | 0         |       |
 * tl_title     | varchar(255) binary | NO   | PRI | 0         |       |

+---+-+--+-+---+---+ +---+-+--+-+---+---+ +---+-+--+-+---+---+
 * Field        | Type                | Null | Key | Default   | Extra |
 * tl_from      | int(8) unsigned     | NO   | PRI | 0         |       |
 * tl_namespace | int(8)              | NO   | PRI | 0         |       |
 * tl_title     | varchar(255) binary | NO   | PRI | 0         |       |

Les index
 +---++--+--+---+---+-+--++--++-+---+ +---++--+--+---+---+-+--++--++-+---+ +---++--+--+---+---+-+--++--++-+---+
 * Table        | Non_unique | Key_name                         | Seq_in_index | Column_name       | Collation | Cardinality | Sub_part | Packed | Null | Index_type | Comment | Index_comment |
 * templatelinks |         0 | PRIMARY                          |            1 | tl_from           | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
 * templatelinks |         0 | PRIMARY                          |            2 | tl_target_id      | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
 * templatelinks |         1 | tl_target_id                     |            1 | tl_target_id      | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
 * templatelinks |         1 | tl_target_id                     |            2 | tl_from           | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
 * templatelinks |         1 | tl_backlinks_namespace_target_id |            1 | tl_from_namespace | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
 * templatelinks |         1 | tl_backlinks_namespace_target_id |            2 | tl_target_id      | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |
 * templatelinks |         1 | tl_backlinks_namespace_target_id |            3 | tl_from           | A         |           0 |     NULL | NULL   |      | BTREE      |         |               |