Template:Citation Style documentation/language/doc

From blackwiki
< Template:Citation Style documentation‎ | language
Revision as of 15:47, 7 December 2018 by imported>Trappist the monk (create;)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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‎.

2-character codes

Script error: No such module "cs1_lang_lister".

3-character codes

Script error: No such module "cs1_lang_lister".

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. For these reasons, cs1|2 templates do not support IETF-like tags. When these tags are used in |language=, cs1|2 will attempt to extract the appropriate language-name from the string of characters that precede the first hyphen (if present).

Script error: No such module "cs1_lang_lister".

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

Script error: No such module "cs1_lang_lister".

Overridden codes / names

Codes and names marked with a super-scripted dagger () are overridden by cs1|2:

  • Bangla → Bengali – Bangla is the language endonym; at en.wiki the exonym, Bengali, is more appropriate
  • bh → Bihari – MediaWiki incorrectly associates bh with Bhojpuri (the subdomain for the Bhojpuri Wikipedia is: bh.wikipedia.org)
  • cnr and Montenegrin – until recently, this code / name pair was not, but is now, supported by MediaWiki. The override is still in the cs1|2 module code to be removed at the next update.