Template:Tr/doc

This template translates a given game term from English into another language, based on the translation databases. It is one of the most powerful and crucial templates for the translation projects.

Usage
The term that is to be translated. It needs to be registered in the translation database for the target language, otherwise the template will simply display the term, untranslated.
 * First unnamed parameter

Language code of the language to translate the term into. Defaults to lang, so it can almost always be omitted.
 * lang

Display the link to the page of the term in the target language, instead of the translated term itself. While this will usually have no effect on off-wiki language wikis since these have page names in their languages, its effect is important for the other language wikis, whose page names are in English.
 * link

Examples
The $lang parameter is used here for demonstrative purposes. In the vast majority of cases, it can be omitted as it will automatically detect the correct target language via lang.

Based on performance considerations, input text is case-sensitive and whitespace-sensitive.

Translation databases
The following templates hold all translations that tr bases its output on.