Template:Language/doc: Difference between revisions
Template page
More actions
adapt to TemplateBox |
+ |
||
| Line 1: | Line 1: | ||
{{TemplateBox | {{TemplateBox | ||
|name = language | |name = language | ||
|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 | |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. | ||
|1=1 | |1=1 | ||
|1d=language code (most of the time, but not always [[:en:ISO 639-3|ISO codes]] | |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 | |2=2 | ||
|2d=language in which the language name should be returned (if different from the user's preferred language) | |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> | |2def=<code><nowiki>{{int:lang}}</nowiki></code> | ||
|seealso=[[User:Rocket000/Languages/more]] for potentially missing languages) | |seealso=[[User:Rocket000/Languages/more]] for potentially missing languages) | ||
|namespace=all<!-- or only template ?--> | |||
|usergroup=all | |||
}} | }} | ||
| Line 30: | Line 32: | ||
* <nowiki>{{language|en|he}}</nowiki> → {{language|en|he}} | * <nowiki>{{language|en|he}}</nowiki> → {{language|en|he}} | ||
* <nowiki>{{language|en|zh-hans}}</nowiki> → {{language|en|zh-hans}} | * <nowiki>{{language|en|zh-hans}}</nowiki> → {{language|en|zh-hans}} | ||
|} | |}<includeonly> | ||
[[Category:Internationalization templates|{{PAGENAME}}]] | |||
</includeonly> | |||
Revision as of 14:58, 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
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
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 | |
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)
examples
|
|