Difference between revisions of "Template:Iso2lang/doc"

From blackwiki
Jump to navigation Jump to search
imported>This, that and the other
(Redirected page to Template:ISO 639 name/doc)
 
(7 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Template doc page}}
+
#REDIRECT [[Template:ISO 639 name/doc]]
This template, '''Lang2iso''', takes a two-letter [[ISO 639]] language code and converts it into an English-language language name (such as "Abkhazian" or "Sinhalese").  This table's values are based on [[List of ISO 639-1 codes]].  (Some additions to ISO 639-1 codes are identified below.)  If the provided language name is not identified, then the default value of "undefined" is returned.
 
 
 
'''Examples:'''
 
 
 
* <nowiki>{{Iso2lang|de}}</nowiki> returns "German"
 
* <nowiki>{{Iso2lang |el}}</nowiki> returns "Greek"
 
* <nowiki>{{Iso2lang |es}}</nowiki> returns "Spanish"
 
 
 
'''Purpose:'''
 
 
 
To transclude into templates
 
 
 
'''Additions to ISO 639-1 Alpha-2 codes:'''
 
 
 
Not all languages have ISO 639-1 codes.  Thus, as time goes on, users are encouraged to add standard or ad hoc conversions to this table as needed.  Thus far, the following additions to ISO 639-1 have been added:
 
 
 
<u>ISO codes</u>
 
*"deva" returns "Devanāgarī" (per [[ISO 15924]])
 
* "tlh" returns "Klingon" (per [[List of ISO 639-2 codes|ISO 639-2]])
 
* "mni" returns "Manipuri" (per [[List of ISO 639-2 codes|ISO 639-2]])
 
* "pra" returns "Prakrit" (per [[List of ISO 639-2 codes|ISO 639-2]])
 
* "hans" returns "Simplified Chinese" (per [[ISO 15924]])
 
* "hant" returns "Traditional Chinese" (per [[ISO 15924]])
 
 
 
==See also==
 
*{{tl|Lang2iso}}
 
 
 
<includeonly>
 
<!-- PLEASE ADD CATEGORIES BELOW THIS LINE, THANKS. -->
 
[[Category:Multilingual support templates|Iso2lang]]
 
 
 
<!-- PLEASE ADD INTERWIKIS BELOW THIS LINE, THANKS. -->
 
[[ja:Template:Iso2lang]]
 
</includeonly>
 

Latest revision as of 02:02, 1 July 2012