Template:Language/doc: Difference between revisions
Template page
More actions
No edit summary |
No edit summary |
||
| Line 6: | Line 6: | ||
|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. | |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) | ||
Revision as of 21:03, 22 November 2012
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= }}
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
|
|