Template: LanguageNative
(revision: 2.0) |
(handling for missing parameter in calls) |
||
Line 23: | Line 23: | ||
If no <LangCode> matches, it returns by default the same given <LangCode>. | If no <LangCode> matches, it returns by default the same given <LangCode>. | ||
− | </noinclude><onlyinclude>{{#switch:{{{1}}} | + | </noinclude><onlyinclude>{{#if:{{{1|}}}|{{#switch:{{{1}}} |
|aa=Afaraf | |aa=Afaraf | ||
|ab=аҧсуа | |ab=аҧсуа | ||
Line 209: | Line 209: | ||
|zu=isiZulu | |zu=isiZulu | ||
|#default={{{1}}} | |#default={{{1}}} | ||
− | }}</onlyinclude> | + | }}|}}</onlyinclude> |
Revision as of 16:37, 25 January 2011
This is the "LanguageNative" template. Edit the page to see the template text.
Description
This template returns the native language of a given (2-digit lowercase) language code (ISO 639-1).
Note - Altought it has been developed to be called as a sub-template from Template:Languages, this template might be used everywhere.
Usage
It should be called in the following format:
{{LanguageNative|<LangCode>}}
where:
- <LangCode> is the (2-digit lowercase) language code (ISO 639-1) corresponding to the desired native language.
If no <LangCode> matches, it returns by default the same given <LangCode>.