Template: LanguageNative
m (debugging...) |
m (Added a warning about editing this template) |
||
(5 intermediate revisions by the same user not shown) | |||
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). | |
− | ''' | + | '''''Important note''''' - Altought it has been developed to be called as a sub-template from [[Template:Languages]], this template might be used everywhere. Please, '''do not edit''' if you are not REALLY sure about what you are doing. |
− | + | '''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: |
− | </noinclude> | + | * <LangCode> is the (2-digit lowercase) language code (ISO 639-1) corresponding to the desired native language. |
− | <onlyinclude> | + | |
+ | If no <LangCode> matches, it returns by default the same given <LangCode>. | ||
+ | </noinclude><onlyinclude>{{#if:{{{1|}}}|{{#switch:{{{1}}} | ||
|aa=Afaraf | |aa=Afaraf | ||
|ab=аҧсуа | |ab=аҧсуа | ||
Line 59: | Line 63: | ||
|en=English | |en=English | ||
|eo=Esperanto | |eo=Esperanto | ||
− | |es= | + | |es=español |
|et=eesti | |et=eesti | ||
|eu=euskara | |eu=euskara | ||
Line 205: | Line 209: | ||
|zu=isiZulu | |zu=isiZulu | ||
|#default={{{1}}} | |#default={{{1}}} | ||
− | }} | + | }}|}}</onlyinclude> |
Latest revision as of 15:04, 8 September 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).
Important note - Altought it has been developed to be called as a sub-template from Template:Languages, this template might be used everywhere. Please, do not edit if you are not REALLY sure about what you are doing.
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>.