Template:Template translation
This template is used for templates which need to be translated into other languages.
Usage
You can add {{Template translation}}
(shortened as {{tt}}
) to the position where the translated text should be placed. The template will then check if the translated template exists and if so, it will be included. If not, the default text will be shown.
Parameters
name
Required- The name of the template to be translated. Usually should be the name of the template itself.
default
Required- The default text to be shown if the translation does not exist.
arg1
-arg3
- Arguments to be passed to the translated template. This can be useful if the template has more than one text to be translated. Then you can pass
arg1
to identify which text should be translated.
Syntax
{{tt|name = template name | default = default text | arg1 = arg1 | ... }}
How to translate
This template doesn't need to/shouldn't be translated, but you can translate the documentation of this template with the following steps:
- Create a subpage of this template with the language code of the language you want to translate to.
- Copy the code wrapped in the
<noinclude>
tag in this template into the page you created.{{Translation guide}}
template should be removed from the translated documentation.
- Translate the page according to the translation requirements of normal pages.