Template: LanguageNative
(Template 'LanguageNative' - rev.1.1, 25/01/2011) |
m (fixing...) |
||
Line 2: | Line 2: | ||
This is the "LanguageNative" sub-template. Edit the page to see the template text. | This is the "LanguageNative" sub-template. Edit the page to see the template text. | ||
− | |||
− | |||
Rev. 1.1 - Date: 25/01/2011 | Rev. 1.1 - Date: 25/01/2011 | ||
− | |||
− | |||
'''Description''': | '''Description''': | ||
− | |||
− | |||
This sub-template is designed to simplify [[Template:Languages]], by allowing a way to automatically display the native language name. | This sub-template is designed to simplify [[Template:Languages]], by allowing a way to automatically display the native language name. | ||
− | |||
− | |||
''IMPORTANT NOTE'' - This template should not be used anywhere except in the [[Template:Languages]] template. This sub-template doesn't display properly when not included. Please see [[Template:Languages]] for the complete version. | ''IMPORTANT NOTE'' - This template should not be used anywhere except in the [[Template:Languages]] template. This sub-template doesn't display properly when not included. Please see [[Template:Languages]] for the complete version. | ||
− | |||
− | |||
'''Usage''': | '''Usage''': | ||
− | |||
− | |||
It should be called in the following format: | It should be called in the following format: | ||
− | |||
<pre> | <pre> | ||
− | |||
{{LanguageNative|Code}} | {{LanguageNative|Code}} | ||
− | |||
</pre> | </pre> | ||
− | |||
where 'Code' is the locale (ISO 639-1) of the native language name to display. | where 'Code' is the locale (ISO 639-1) of the native language name to display. | ||
− | |||
</noinclude> | </noinclude> | ||
<onlyinclude><span lang="{{{1}}}" xml:lang="{{{1}}}">{{#switch:{{{1}}} | <onlyinclude><span lang="{{{1}}}" xml:lang="{{{1}}}">{{#switch:{{{1}}} | ||
− | |||
− | |||
|aa=Afaraf | |aa=Afaraf | ||
|ab=аҧсуа | |ab=аҧсуа | ||
Line 224: | Line 205: | ||
|zu=isiZulu | |zu=isiZulu | ||
|#default={{{1}}} | |#default={{{1}}} | ||
− | |||
}}</span></onlyinclude> | }}</span></onlyinclude> |
Revision as of 19:49, 24 January 2011
This is the "LanguageNative" sub-template. Edit the page to see the template text.
Rev. 1.1 - Date: 25/01/2011
Description:
This sub-template is designed to simplify Template:Languages, by allowing a way to automatically display the native language name.
IMPORTANT NOTE - This template should not be used anywhere except in the Template:Languages template. This sub-template doesn't display properly when not included. Please see Template:Languages for the complete version.
Usage:
It should be called in the following format:
{{LanguageNative|Code}}
where 'Code' is the locale (ISO 639-1) of the native language name to display.
{{{1}}}