Jump to content

Template:Tunit

Permanently protected template
From Meta, a Wikimedia project coordination wiki

{{{content}}}

Template documentation


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.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Unit Identifier1 id

Identifier of the unit you want to reuse the translation. Usually a number. XXX in <!--T:XXX--> marker.

Example
5
Stringrequired
Unit content2 content

Full content of the unit (will be used if the translation is not available).

Contentrequired
Source page3 page

Page from where the unit should be picked up.

Page nameoptional
Use User Interface language4 uilang

If set, the user interface language will be used as target language on pages without language code suffix in their title.

Example
1
Booleanoptional

See also

  • {{Translated content}} – this template reuses a translation unit from another page - it requires page name and uses interface language as target language.