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

From blackwiki
Jump to navigation Jump to search
imported>Trappist the monk
(lang function name change;)
imported>SMcCandlish
m (grammar)
Line 15: Line 15:
  
 
==Language names==
 
==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 succeed.
+
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_lang_lister|lister|list=name}}
 
{{#invoke:cs1_lang_lister|lister|list=name}}

Revision as of 07:36, 16 January 2020

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 to 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:

  • Alemannisch – not an ISO 639 language name; when encountered, cs1|2 treats this as gsw Swiss German
  • als – MediaWiki returns Alemannisch (als is the subdomain for the Alemannisch Wikipedia: als.wikipedia.org); cs1|2 uses the ISO 639-3 definition: Tosk Albanian
  • bh – MediaWiki returns Bhojpuri (bh is the subdomain for the Bhojpuri Wikipedia: bh.wikipedia.org); cs1|2 uses a modified form of the ISO 639-1 definition: Bihari languages
  • Bhojpuri – ISO 639 language code for this language is bho; MediaWiki returns the Bihari languages code: bh; cs1|2 uses the correct code bho
  • bn – MediaWiki returns Bangla which is the language endonym; cs1|2 uses the ISO 639-3 definition (the exonym form): Bengali
  • crh – MediaWiki returns Crimean Turkish; cs1|2 uses the ISO 639-3 definition: Crimean Tatar
  • Valencian – not an ISO 639 language name; cs1|2 uses an IETF language tag ca-valencia, the Valencian variant of Catalan: Valencian