Template:Language/doc: Difference between revisions
Template page
More actions
add templateBox and remove documentation of /XX subpages (currently not much used, and much less useful with the current version of language parser, can I delete them in a few weeks ? |
add back a part that I should not have deleted |
||
| Line 1: | Line 1: | ||
{{TemplateBox | {{TemplateBox | ||
|name = language | |name = language | ||
|desc={{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)}} | |desc= | ||
{{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). | |||
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).}} | |||
}} | }} | ||
| Line 10: | Line 14: | ||
|- | |- | ||
|width="50%" valign="top"| | |width="50%" valign="top"| | ||
* <nowiki>{{language/{{ | * <nowiki>{{language|ar}}</nowiki> → {{language|ar}} | ||
* <nowiki>{{language | * <nowiki>{{language|ar|de}}</nowiki> → {{language|ar|de}} | ||
* <nowiki>{{language | * <nowiki>{{language|ar|en}}</nowiki> → {{language|ar|en}} | ||
* <nowiki>{{language | * <nowiki>{{language|ar|fr}}</nowiki> → {{language|ar|fr}} | ||
* <nowiki>{{language | * <nowiki>{{language|ar|he}}</nowiki> → {{language|ar|he}} | ||
* <nowiki>{{language|ar|zh-hans}}</nowiki> → {{language|ar|zh-hans}} | |||
|width="50%" valign="top"| | |width="50%" valign="top"| | ||
* <nowiki>{{language/{{ | * <nowiki>{{language|en}}</nowiki> → {{language|en}} | ||
* <nowiki>{{language | * <nowiki>{{language|en|de}}</nowiki> → {{language|en|de}} | ||
* <nowiki>{{language | * <nowiki>{{language|en|en}}</nowiki> → {{language|en|en}} | ||
* <nowiki>{{language | * <nowiki>{{language|en|fr}}</nowiki> → {{language|en|fr}} | ||
* <nowiki>{{language | * <nowiki>{{language|en|he}}</nowiki> → {{language|en|he}} | ||
* <nowiki>{{language|en|zh-hans}}</nowiki> → {{language|en|zh-hans}} | |||
|} | |} | ||
Revision as of 14:49, 6 February 2012
English: 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 ISO codes (see http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/cldr/ for details, and User:Rocket000/Languages/more for potentially missing languages).
Usage
{{language}}
The template takes no parameters.
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
examples
|
|