Jump to content

Template:Tunit/doc

From mediawiki.org

Usage

[edit]
{{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.}}

Tunit stands for "translation unit". This template allows to reuse the same content several times in a translatablepage; translators having to translate it only once.

Template parameters

ParameterDescriptionTypeStatus
Unit Identifier1 id

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

Example
id=6
Stringrequired
Unit content2 content

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

Example
2=Tug of War
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
4=1
Booleanoptional