Template:LangName: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(changed behaviour so that if no parameter is informed, nothing is displayed)
mNo edit summary
 
Line 1: Line 1:
<includeonly>{{#switch:{{{1|}}}
<includeonly>{{#switch:{{{1|}}}
|    = <!-- if no parameter informed, display nothing -->
|    = <!-- if a parameter is not passed, display nothing -->
|aa  = Afar
|aa  = Afar
|ab  = Abkhazian
|ab  = Abkhazian

Latest revision as of 22:27, 7 December 2020


Documentation

This template gives the English name of a language specified by its ISO 639 language code.

Examples
{{LangName|it}}

displays Italian

{{LangName|xx}}

displays Unrecognised language code

{{LangName| }} or {{LangName}}

displays nothing.