Template:Language: Difference between revisions
Template page
More actions
m Changed protection level for "Template:Language": downgraded protection level per consensus ([Edit=Allow only template editors and administrators] (indefinite) [Move=Allow only template editors and administrators] (indefinite)) |
suppress spaces that cause problems in some contexts where they are not trimmed by #language |
||
| Line 1: | Line 1: | ||
{{#language: {{{1|}}} | {{#if: {{{2|}}} | {{{2|}}} | {{int:lang}} }} }}<noinclude> | {{#language:{{{1|}}}|{{#if: {{{2|}}} | {{{2|}}} | {{int:lang}} }}}}<noinclude>{{Documentation}}</noinclude> | ||
{{ | |||
</noinclude> | |||
Revision as of 03:35, 17 June 2020
English
This documentation is transcluded from Template:Language/doc.
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—this is an ISO code). See https://phabricator.wikimedia.org/diffusion/ECLD/browse/master/CldrMain/CldrMainEn.php for a list | 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
|
|