Template:NeedsTranslationTooltip

Revision as of 20:04, 14 October 2024 by Sur (talk | contribs) (text key can be passed, defaults to the main tooltip)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Template documentation [view] [edit] [history] [purge]

Added directly after content that needs localization, including both larger content such as Abrams#Introduction, and shorter strings such as "Patch notes" in a Hero's Update history article, which are otherwise written in a template.

See Template:Translate for documentation and further information to help translate marked text.

Optional first parameter is translation-key to localize and display. Defaults to 'NeedsTranslationTooltip' which displays "This needs translation to English. To help translate it, visit %s.".

In most circumstances, use no parameter. Patch notes{{NeedsTranslationTooltip}}

Outputs

Patch notes[nt]


One special circumstance for needing to use another key is in an ability article. Notes for the ability come from /<ability name>/Notes, so if 'Notes' is not yet translated, the page can't exist, and it instead transcludes the english notes. In this case, the 'NotesNeedsTranslation' key is passed, which displays "Notes page cannot be created until 'Notes' is translated.".

This is accomplished with

{{NeedsTranslationTooltip|NotesNeedsTranslation}}