Template:Translate/doc

From The Deadlock Wiki
Revision as of 20:45, 6 June 2026 by Mgpt (talk | contribs) (rewrite documentation for clarity)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Overview

[edit source]

Navigate to Data:Dictionary to add or update keys, or create a new key if one does not already exist.

For additional context about where a key is used, see Data:Dictionary/sources.

Tooltip notes

[edit source]
  • {{NeedsTranslationTooltip}} [nt] - displayed when the key is not translated.
  • {{MissingValveTranslationTooltip}} [vt] (manual) - displayed in cases where an official translation is expected but unavailable.

Use this template to translate reusable text strings and interface text that appear in templates, such as {{Update layout}}. Page-specific content should be translated on the corresponding language subpage.

If a translation is unavailable, the template falls back to the english translation and displays the missing translation tooltip. An optional parameter allows the language to be overridden.

See also: Module:Dictionary.

Examples

[edit source]

{{Translate|Patch notes}} Output: Patch notes

{{Translate|Patch notes|lang_code=ru}} Output: Содержание обновления

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Dictionary key1

The key that corresponds to the text to be translated.

Example
Patch notes
Stringrequired
Language codelang_code

Optional language code to override the language. See Data:LangCodes.json.

Example
es, cs, pt-br
Stringoptional