Template:TranslateThis
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
[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
The above documentation is transcluded from Template:TranslateThis/doc (edit | history). Editors can experiment in this template's sandbox (create | mirror) and testcases (create) page. Please add categories to the /doc subpage. Subpages of this template. |