Template:Language

From WikiEducator
Jump to: navigation, search

[edit]

Documentation


(this part of the documentation is only available in some languages)

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.

Usage

{{language|1=|2=}}

Parameters

Parameter name Description (this part of the documentation is only available in some languages) 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

(this part of the documentation is only available in some languages)

User:Rocket000/Languages/more for potentially missing languages


Examples

  • {{language|ar}} → العربية
  • {{language|ar|de}} → العربية
  • {{language|ar|en}} → العربية
  • {{language|ar|fr}} → العربية
  • {{language|ar|he}} → العربية
  • {{language|ar|zh-hans}} → العربية
  • {{language|en}} → English
  • {{language|en|de}} → English
  • {{language|en|en}} → English
  • {{language|en|fr}} → English
  • {{language|en|he}} → English
  • {{language|en|zh-hans}} → English

See also