Template:LocaleMatch
Jump to navigation
Jump to search
Usage
The LocaleMatch template is used to create a localized text that may be rendered on wiki pages with different locales.
Notes
It uses ISO 639 language identifiers and checks them against the page's locale code using {{PAGELANGUAGE}}, or if unavailable, against {{langcode}}. It falls back to the English localisation if none in the current language is available. In the event no localisation (current language or English) is available, it displays the text [no localisation available].
Syntax
{{LocaleMatch
|[locale identifier 1]=[localized text]
|[locale identifier 2]=[localized text]
...
}}Examples
- rendered :
{{LocaleMatch |en=Name |fr=Nom |de=Name |es=Nombre |it=Nome }}
Name
See also
- {{Langcode}}