Difference between revisions of Template:Citation Style documentation/language/doc

Jump to navigation Jump to search
m (1 revision imported)
Tag: Replaced
 
Line 1: Line 1:
cs1|2 templates validate the content of {{para|language}} against language codes and names supported by MediaWiki.  This page lists the language codes and names that MediaWiki supports.  Language name and code pairs marked with a super-scripted dagger (<sup>†</sup>) are codes / names that are overridden by codes / names defined in [[Module:Citation/CS1/Configuration]]. See §[[#Overridden codes / names|Overridden codes / names]].  Use of language codes / names not found in these lists will cause [[Module:Citation/CS1]] to place the article in {{cl|CS1 maint: unrecognized language‎}}.
+
See [[Wikipedia:Template:Citation Style documentation/language/doc]]
 
 
==2-character codes==
 
 
 
{{#invoke:cs1 documentation support|lang_lister|list=2char}}
 
 
 
==3-character codes==
 
 
 
{{#invoke:cs1 documentation support|lang_lister|list=3char}}
 
 
 
==IETF language tags==
 
This list contains legitimate [[IETF language tag]]s, tags that look like IETF tags but are not or are malformed, and 'codes' that are not codes.  For these reasons, cs1|2 templates do not support IETF-like tags.  When these tags are used in {{para|language}}, cs1|2 will attempt to extract the appropriate language-name from the string of characters that precede the first hyphen (if present).
 
 
 
{{#invoke:cs1 documentation support|lang_lister|list=ietf}}
 
 
 
==Language names==
 
This list contains legitimate [[IETF language tag]]s, tags that look like IETF tags but are not or are malformed, and 'codes' that are not codes.  For these reasons, cs1|2 templates do not support IETF-like tags and associated names.  When these names are used in {{para|language}}, cs1|2 will attempt to validate them but such attempts are not likely to succeed.
 
 
 
{{#invoke:cs1 documentation support|lang_lister|list=name}}
 
 
 
==Overridden codes / names==
 
Codes and names marked with a super-scripted dagger (<sup>†</sup>) are overridden by cs1|2:
 
*Alemannisch – not an ISO 639 language name; when encountered, cs1|2 treats this as <code>gsw</code> {{llink|gsw}}
 
*<code>als</code> – MediaWiki returns {{#language:als|en}} (<code>als</code> is the subdomain for the Alemannisch Wikipedia: als.wikipedia.org); cs1|2 uses the ISO 639-3 definition: {{llink|als}}
 
*<code>bh</code> – MediaWiki returns {{#language:bh|en}} (<code>bh</code> is the subdomain for the Bhojpuri Wikipedia: bh.wikipedia.org); cs1|2 uses a modified form of the ISO 639-1 definition: {{llink|bh}}
 
*Bhojpuri – ISO 639 language code for this language is <code>bho</code>; MediaWiki returns the Bihari languages code: <code>bh</code>; cs1|2 uses the correct code <code>bho</code>
 
*Blackfoot – not an ISO 639 language name; when encountered, cs1|2 treats this as <code>bla</code> {{#invoke:lang|name_from_tag|bla|link=yes}}
 
*<code>bn</code> – MediaWiki returns {{#language:bn|en}} which is the language [[Exonym and endonym|endonym]]; cs1|2 uses the ISO 639-3 definition (the exonym form): {{llink|bn}}
 
*<code>crh</code> – MediaWiki returns {{#language:crh|en}}; cs1|2 uses the ISO 639-3 definition: {{llink|crh}}
 
*<code>ilo</code> – MediaWiki returns {{#language:ilo|en}}; cs1|2 uses the English Wikipedia's preferred definition: {{#invoke:lang|name_from_tag|ilo|link=yes}}
 
*<code>ksh</code> – MediaWiki returns {{#language:ksh|en}}; cs1|2 uses the ISO 639-3 definition: {{llink|ksh}}
 
*<code>ksh-x-colog</code> – {{#invoke:lang|name_from_tag|ksh-x-colog|link=yes}}; there is no ISO 639 code for this language
 
*<code>mis-x-ripuar</code> – {{#invoke:lang|name_from_tag|mis-x-ripuar|link=yes}}; there is no ISO 639 code for this language
 
*<code>nan-tw</code> – {{#invoke:lang|name_from_tag|nan-tw|link=yes}}; to distinguish from <code>nan</code> ({{#language:nan|en}})
 
*Valencian – not an ISO 639 language name; cs1|2 uses an [[IETF language tag]] <code>ca-valencia</code>, the Valencian variant of Catalan: {{#invoke:lang|name_from_tag|ca-valencia|link=yes}}
 

Latest revision as of 14:18, 5 June 2020