Jump to content

Template:Tunit

From mediawiki.org

{{{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

[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.}}

TemplateData

[edit]

This is the TemplateData documentation for this template used by VisualEditor and other tools.

Tunit

Reuses a translation unit on this page, use {{tmpl}} for numeric <tvar>s.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Unit ID1

The translation unit identifier, usually a number, but can also be "Page display title".

Stringrequired
Untranslated Content2

The untranslated content in the wiki content language.

Contentrequired
Source Page3

The translatable page from where to fetch the translation unit, defaults to the current page without a langauge code suffix.

Default
{{TRANSLATABLEPAGE}}
Page nameoptional
Use UI Language?uilang

Whether to use the UI language instead of the page language on pages without a language code suffix.

Default
0
Auto value
1
Booleanoptional
Edit parameter translations