Template:Tunit/doc/fr
| This is a documentation subpage for Template:Tunit/doc. It contains usage information, categories, and other content that is not part of the original template page. |
Tunit est l'abréviation de "translation unit" (unité de traduction). Ce modèle permet de réutiliser le même contenu plusieurs fois dans une page traduisible ; les traducteurs ne devant la traduire qu'une seule fois.
Utilisation
{{Tunit |XXX |The unit content, in case there is no available translation.}}
{{Tunit |1=XXX |2=The unit content, in case there is no available translation.}}
{{Tunit |id=XXX |content=The unit content, in case there is no available translation.}}
Reuses a translation unit when a same message is duplicated several times in the page, or from another page. NOTE: Does not support content with <tvar>s.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Unit Identifier | 1 id | Identifier of the unit you want to reuse the translation. Usually a number. XXX in <!--T:XXX--> marker.
| String | required |
| Unit content | 2 content | Full content of the unit (will be used if the translation is not available). | Content | required |
| Source page | 3 page | Page from where the unit should be picked up. | Page name | optional |
| Use User Interface language | 4 uilang | If set, the user interface language will be used as target language on pages without language code suffix in their title.
| Boolean | optional |
Voir aussi
- {{Translated content}} - ce modèle réutilise une unité de traduction d'une autre page - il nécessite le nom de la page et utilise la langue de l'interface comme langue cible.