Template:Languagename

From OpenStreetMap Wiki
Jump to: navigation, search
[Edit] [Octicons-sync.svgpurge] Template-info.svg Template documentation

Usage

This is similar to Mediawiki’s {{#language:}} parser function.

  • {{Languagename|language-code}} returns the native language name (autonym). In most cases, outputs the same as {{#language:language-code}}, but supports additional languages still unknown to Mediawiki. Also equivalent to:
    {{Languagename|language-code|language-code}}
  • {{Languagename|language-code1|language-code2}} returns the language name translated to language-code2. In most cases, outputs the same as {{#language:language-code1|language-code2}}, but supports additional languages still unknown to Mediawiki.

For now the following additional language codes (valid in BCP 47) are recognized have have their language names translated by this template and not by Mediawiki’s {{#language:}} parser function which still do not support them:

ca-valencia, gcf, sr-cyrl, sr-latn, sxu, tzm, zgh

See also