Template:TranslateThis

From Gratisdata
Documentation icon Template documentation[view · edit · history · purge ]

This template can be used to display multilingual text in user’s preferred language if available, and display a call for translation if not.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Englishen

The translatable text in English. Similarly “de” for German, “fr” for French, “es” for Spanish etc. Note that only the English text is required.

Example
English text
Linerequired
anchoranchor

Language-independent anchor for the template output. Either an anchor text, or the code of a language present to use text in that language in the anchor (e.g. “en” to create anchor from the English text, even if the template is displayed in a different language).

Lineoptional
languagelang

Language code to display the template in. This affects the chosen translation as well as the “please translate this” text. Useful in other templates and translated help pages to provide consistent output.

Example
en
Lineoptional

Usage[edit]

See also[edit]

  • {{LangSwitch}} – displays text in user language similarly, but doesn’t include the call for translation if no perfectly matching translation found
  • {{Anchor}} – used in this template to provide anchor
  • {{Help translate}} – used in this template to show the call for translation, please translate it there