Template: LanguageNative
m (fixing...) |
(revision: 2.0) |
||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
+ | This is the "LanguageNative" template. Edit the page to see the template text. | ||
+ | <!-- | ||
+ | Coded by: alexus <http://libreplanet.org/wiki/User:Alexus> | ||
+ | Revision: 2.0 | ||
+ | Date: 25/01/2011 | ||
+ | --> | ||
− | + | '''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''' | |
− | |||
− | |||
− | |||
− | '''Usage''' | ||
It should be called in the following format: | It should be called in the following format: | ||
<pre> | <pre> | ||
− | {{LanguageNative| | + | {{LanguageNative|<LangCode>}} |
</pre> | </pre> | ||
− | where | + | 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>. | ||
</noinclude><onlyinclude>{{#switch:{{{1}}} | </noinclude><onlyinclude>{{#switch:{{{1}}} | ||
|aa=Afaraf | |aa=Afaraf |
Revision as of 16:20, 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>. {{{1}}}