Template:Citation Style documentation/language/doc

From IDU Wiki
Jump to navigation Jump to search

cs1|2 templates validate the content of |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 Category:CS1 maint: unrecognized language‎.

Lua error in Module:Unicode_data at line 290: attempt to index local 'data_module' (a boolean value).: When evaluating the value assigned to |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:

When citing Irish- and Hiri Motu-language sources, use |language=Irish and |language=Hiri Motu.

2-character codes[edit source]

Script error: No such module "cs1 documentation support".

3-character codes[edit source]

Script error: No such module "cs1 documentation support".

IETF language tags[edit source]

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)[edit source]

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. Script error: No such module "cs1 documentation support".

IETF language tags (ISO 639-2, -3)[edit source]

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. Script error: No such module "cs1 documentation support".

Language names[edit source]

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 |language=, cs1|2 will attempt to validate them but such attempts are not likely to succeed.

Script error: No such module "cs1 documentation support".

Overridden codes / names[edit source]

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
  • als – MediaWiki returns Alemannisch (als is the subdomain for the Alemannisch Wikipedia: als.wikipedia.org); cs1|2 uses the ISO 639-3 definition:
  • bh – MediaWiki returns भोजपुरी (bh is the subdomain for the Bhojpuri Wikipedia: bh.wikipedia.org); cs1|2 uses a modified form of the ISO 639-1 definition:
  • Bhojpuri – ISO 639 language code for this language is bho; MediaWiki returns the Bihari languages code: bh; cs1|2 uses the correct code bho
  • Blackfoot – not an ISO 639 language name; when encountered, cs1|2 treats this as bla Script error: The function "name_from_tag" does not exist.
  • bn – MediaWiki returns বাংলা which is the language endonym; cs1|2 uses the ISO 639-3 definition (the exonym form):
  • crh – MediaWiki returns qırımtatarca; cs1|2 uses the ISO 639-3 definition:
  • fkv – MediaWiki returns fkv; cs1|2 uses the English Wikipedia's preferred definition: Script error: The function "name_from_tag" does not exist.
  • ilo – MediaWiki returns Ilokano; cs1|2 uses the English Wikipedia's preferred definition: Script error: The function "name_from_tag" does not exist.
  • ksh – MediaWiki returns Ripoarisch; cs1|2 uses the ISO 639-3 definition:
  • ksh-x-colog – Script error: The function "name_from_tag" does not exist.; there is no ISO 639 code for this language
  • mis-x-ripuar – Script error: The function "name_from_tag" does not exist.; there is no ISO 639 code for this language
  • nan-tw – Script error: The function "name_from_tag" does not exist.; to distinguish from nan (Bân-lâm-gú)
  • Valencian – not an ISO 639 language name; cs1|2 uses an IETF language tag ca-valencia, the Valencian variant of Catalan: Script error: The function "name_from_tag" does not exist.