Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Language/doc: Difference between revisions

Template page
add back a part that I should not have deleted
adapt to TemplateBox
Line 1: Line 1:
{{TemplateBox
{{TemplateBox
|name = language
|name = language
|desc=
|desc=Template that uses the #language parser ([[mw:Help:Magic_words#Miscellaneous|help page]] to return a language name in the user's language or in any other language specified in a second parameter
{{en|This template will return the name of a language given the language code. This template is made specifically for the language codes used in MediaWiki (often, but not always [[:en:ISO 639-3|ISO codes]] (see http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/cldr/ for details, and [[User:Rocket000/Languages/more]] for potentially missing languages).


 
|1=1
The second parameter can be used to set the desired output language, otherwise it will return the name in the user's interface language (if a translation exists).}}
|1d=language code (most of the time, but not always [[:en:ISO 639-3|ISO codes]] (see http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/cldr/ for details)
|2=2
|2d=language in which the language name should be returned (if different from the user's preferred language)
|2def=<code><nowiki>{{int:lang}}</nowiki></code>
|seealso=[[User:Rocket000/Languages/more]] for potentially missing languages)
}}
}}



Revision as of 14:56, 6 February 2012

Template that uses the #language parser (help page to return a language name in the user's language or in any other language specified in a second parameter

Usage

{{language |1= |2= }}

Template parameters

ParameterDescriptionDefaultStatus
1language code (most of the time, but not always ISO codes (see http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/cldr/ for details)emptyoptional
2language 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: no namespace specified

The template is intended to be used by the following user groups: no user group specified

See also

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


examples

  • {{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}} → 英语
Cookies help us deliver our services. By using our services, you agree to our use of cookies.