Template:LangName: Difference between revisions
Jump to navigation
Jump to search
(new) |
mNo edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#switch:{{{1}}} | <includeonly>{{#switch:{{{1|}}} | ||
| = <!-- if a parameter is not passed, display nothing --> | |||
|aa = Afar | |aa = Afar | ||
|ab = Abkhazian | |ab = Abkhazian | ||
Line 318: | Line 319: | ||
|cmn = Chinese | |cmn = Chinese | ||
|zu = Zulu | |zu = Zulu | ||
|#default=<span class="error">Unrecognised language code</span> | |||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
{{Doc|1= | |||
This template gives the English name of a language specified by its ISO 639 language code. | This template gives the English name of a language specified by its ISO 639 language code. | ||
; | ;Examples | ||
: | :{{tl|LangName|it}} | ||
displays {{LangName|it}} | displays {{LangName|it}} | ||
:{{tl|LangName|xx}} | |||
displays {{LangName|xx}} | |||
:{{tl|LangName| }} or {{tl|LangName}} | |||
displays nothing. | |||
}} | |||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |