Template:Tunit/doc/en
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 stands for “translation unit”. This template allows to reuse the same content several times in a translatable page; translators having to translate it only once.
Usage
{{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 |
See also
- {{Translated content}} – this template reuses a translation unit from another page - it requires page name and uses interface language as target language.