Template:Citation Style documentation/language/doc#3-character codes
{{shortcut|WP:LANGCODE}}
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 (†) are codes / names that are overridden by codes / names defined in Module:Citation/CS1/Configuration. See §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}}.
{{lang|la|Nota bene}}: When evaluating the value assigned to {{para|language}}, Module:Citation/CS1 looks first in MediaWiki's list of language names before looking in the list of language tags. There are several languages that have tags that match the spelling of the language name: Fon (fon
), Isu (isu
), Luo (luo
), Tiv (tiv
), Vai (vai
), Yao (yao
). There are two where the language tag matches the spelling of another language's name:
ga
– language tag for Irish matches spelling of Ga language (gaa
)ho
– language tag for Hiri Motu matches spelling of Ho language (hoc
)
When citing Irish- and Hiri Motu-language sources, use {{para|language|Irish}} and {{para|language|Hiri Motu}}.
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 tags, tags that look like IETF tags but are not or are malformed, and 'codes' that are not codes. cs1|2 templates support most of these IETF-like tags.
=IETF language tags (ISO 639-1)=
These language tags have the form xx-yy...
where xx
is an ISO 639-1 language tag and yy...
is a two-or-more-character subtag that specify country, script, or other information; be-x-old
is an exception.
{{#invoke:cs1 documentation support|lang_lister|list=ietf2}}
=IETF language tags (ISO 639-2, -3)=
These language tags have the form xxx-yy...
where xx
is an ISO 639-2, -3 language tag and yy...
is a two-or-more-character subtag that specify country, script, or other information.
{{#invoke:cs1 documentation support|lang_lister|list=ietf3}}
Language names
This list contains legitimate IETF language tags, 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 (†) are overridden by cs1|2:
- Alemannisch – not an ISO 639 language name; when encountered, cs1|2 treats this as
gsw
{{ISO 639 name|gsw|link=yes}} als
– MediaWiki returns {{#language:als|en}} (als
is the subdomain for the Alemannisch Wikipedia: als.wikipedia.org); cs1|2 uses the ISO 639-3 definition: {{ISO 639 name|als|link=yes}}bh
– MediaWiki returns {{#language:bh|en}} (bh
is the subdomain for the Bhojpuri Wikipedia: bh.wikipedia.org); cs1|2 uses a modified form of the ISO 639-1 definition: {{ISO 639 name|bh|link=yes}}- Bhojpuri – ISO 639 language code for this language is
bho
; MediaWiki returns the Bihari languages code:bh
; cs1|2 uses the correct codebho
- Blackfoot – not an ISO 639 language name; when encountered, cs1|2 treats this as
bla
{{#invoke:lang|name_from_tag|bla|link=yes}} bn
– MediaWiki returns {{#language:bn|en}} which is the language endonym; cs1|2 uses the ISO 639-3 definition (the exonym form): {{ISO 639 name|bn|link=yes}}crh
– MediaWiki returns {{#language:crh|en}}; cs1|2 uses the ISO 639-3 definition: {{ISO 639 name|crh|link=yes}}fkv
– MediaWiki returns {{#language:fkv|en}}; cs1|2 uses the English Wikipedia's preferred definition: {{#invoke:lang|name_from_tag|fkv|link=yes}}ilo
– MediaWiki returns {{#language:ilo|en}}; cs1|2 uses the English Wikipedia's preferred definition: {{#invoke:lang|name_from_tag|ilo|link=yes}}ksh
– MediaWiki returns {{#language:ksh|en}}; cs1|2 uses the ISO 639-3 definition: {{ISO 639 name|ksh|link=yes}}ksh-x-colog
– {{#invoke:lang|name_from_tag|ksh-x-colog|link=yes}}; there is no ISO 639 code for this languagemis-x-ripuar
– {{#invoke:lang|name_from_tag|mis-x-ripuar|link=yes}}; there is no ISO 639 code for this languagenan-tw
– {{#invoke:lang|name_from_tag|nan-tw|link=yes}}; to distinguish fromnan
({{#language:nan|en}})- Valencian – not an ISO 639 language name; cs1|2 uses an IETF language tag
ca-valencia
, the Valencian variant of Catalan: {{#invoke:lang|name_from_tag|ca-valencia|link=yes}}