Template:LocaleMatch/doc

From OpenStreetMap Wiki
Jump to navigation Jump to search

This is a documentation subpage for Template:LocaleMatch.
It contains usage information, categories and other content or metadata that is not part of the original template.


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

  • {{LocaleMatch
     |en=Name
     |fr=Nom
     |de=Name
     |es=Nombre
     |it=Nome
    }}
    rendered :

Name


See also