Template: LanguageNative

From LibrePlanet
Jump to: navigation, search
m (debugging...)
m (fixing...)
Line 18: Line 18:
 
</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>{{#switch:{{{1}}}
<onlyinclude><span lang="{{{1}}}" xml:lang="{{{1}}}">{{#switch:{{{1}}}
 
 
|aa=Afaraf
 
|aa=Afaraf
 
|ab=аҧсуа
 
|ab=аҧсуа
Line 205: Line 204:
 
|zu=isiZulu
 
|zu=isiZulu
 
|#default={{{1}}}
 
|#default={{{1}}}
}}</span></onlyinclude>
+
}}</onlyinclude>

Revision as of 13:10, 25 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}}}