From TDWG Terms Wiki
(Redirected from Template:language)
Jump to: navigation, search
[edit] [purge] Template-info.svg Template documentation

Template based on the #language parser (help page). It returns a language name in the user's language, or in any other language specified by a second parameter.




Parameter name Description Default value required or optional?

parameter #1 (1) language code (most of the time, but not always ISO codes. See http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/cldr/ for details. empty optional
parameter #2 (2) language in which the language name should be returned (if different from the user's preferred language) {{int:lang}} optional

Additional information

The template is intended to be used in the following namespaces: all namespaces

The template is intended to be used by the following user groups: all users

See also

User:Rocket000/Languages/more for potentially missing languages)


  • {{language|ar}} → Arabic
  • {{language|ar|de}} → Arabisch
  • {{language|ar|en}} → Arabic
  • {{language|ar|fr}} → arabe
  • {{language|ar|he}} → ערבית
  • {{language|ar|zh-hans}} → 阿拉伯文
  • {{language|en}} → English
  • {{language|en|de}} → Englisch
  • {{language|en|en}} → English
  • {{language|en|fr}} → anglais
  • {{language|en|he}} → אנגלית
  • {{language|en|zh-hans}} → 英文

Techical documentation

Needs Extension:CLDR to work and most importantly MediaWiki:Lang to be set. If MediaWiki:Lang is not defined with e.g. “en” it searches for a language “<lang>“ in Extension:CLDR causing the page to disappear and showing an internal error message to switch on debugging. List of MediaWiki:Lang pages in this Wiki are: