Template:TranslateThis/doc
This is a documentation subpage for Template:TranslateThis. It contains usage information, categories, and other content that is not part of the original template page. |
Uses Lua: |
This template can be used to display multilingual text in user’s preferred language if available, and display a call for translation if not.
Parameter | Description | Type | Status | |
---|---|---|---|---|
English | en | The translatable text in English. Similarly “de” for German, “fr” for French, “es” for Spanish etc. Note that only the English text is required.
| Line | required |
anchor | anchor | 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). | Line | optional |
language | lang | 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.
| Line | optional |
Usage
See also
{{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