Collation

From Meta, a Wikimedia project coordination wiki
Jump to: navigation, search

Collation is the process of ordering a list of items. For example, you might collate a list of 15, 8, and 7 with a numerical collation in ascending order, so that your collated list would be 7, 8, and 15.

MediaWiki provides several options for collation:

  • Unicode Collation Algorithm (UCA), either language-agnostic (uca-default) or language-specific (uca-xx). This algorithm typically groups letters with diacritics with the non-diacritic version.
  • Uppercase, a simple algorithm that sorts based on character value, but considers uppercase and lowercase letters the same
  • Identity, same as uppercase but doesn't group uppercase and lowercase together.

As of May 2016, the default category collation for Wikimedia wikis is "uppercase", while several dozen wikis override this default:

'wgCategoryCollation' => [
	'default' => 'uppercase',
	// Multilingual wikis
	'mediawikiwiki' => 'uca-default',
	// Single-language wikis
	'be_x_oldwiki' => 'uca-be-tarask', // T48005
	'bewiki' => 'uca-be', // T48004
	'bewikisource' => 'uca-be', // T48004
	'bnwiki' => 'numeric', // T146675
	'bnwikisource' => 'numeric', // T146675
	'bswiki' => 'uca-bs-u-kn', // T116527, T148682
	'ckbwiki' => 'xx-uca-ckb', // T57630
	'cswiki' => 'uca-cs-u-kn', // T66885, T146675
	'cswiktionary' => 'uca-default', // T106337
	'cywiki' => 'uca-cy', // T61800
	'cywikibooks' => 'uca-cy', // T61800
	'cywikiquote' => 'uca-cy', // T61800
	'cywikisource' => 'uca-cy', // T61800
	'cywiktionary' => 'uca-cy', // T61800
	'dewikisource' => 'numeric', // T149002
	'enwiki' => 'uca-default-u-kn', // T136150
	'eswikiversity' => 'uca-es-u-kn', // T149002
	'etwiki' => 'xx-uca-et', // T56168
	'etwikibooks' => 'xx-uca-et', // T56168
	'etwikimedia' => 'xx-uca-et', // T56168
	'etwikiquote' => 'xx-uca-et', // T56168
	'etwikisource' => 'xx-uca-et', // T56168
	'etwiktionary' => 'xx-uca-et', // T56168
	'fawiki' => 'uca-fa', // T52311
	'fawikisource' => 'uca-fa', // T52311
	'fawiktionary' => 'uca-fa', // T52311
	'fawikibooks' => 'uca-fa', // T52311
	'fawikinews' => 'uca-fa', // T52311
	'fawikiquote' => 'uca-fa', // T52311
	'fiwiki' => 'uca-fi', // T48330
	'fiwikibooks' => 'uca-fi', // T48330
	'fiwikimedia' => 'uca-fi', // T48330
	'fiwikinews' => 'uca-fi', // T48330
	'fiwikiquote' => 'uca-fi', // T48330
	'fiwikisource' => 'uca-fi', // T48330
	'fiwikiversity' => 'uca-fi', // T48330
	'frwiki' => 'uca-fr-u-kn', // T56680, T146675
	'frwikibooks' => 'uca-fr', // T74513
	'frwikinews' => 'uca-fr', // T68165
	'frwikiversity' => 'uca-fr', // T71782
	'gdwiki' => 'uca-default', // T125315
	'glwiki' => 'uca-gl-u-kn', // T149002
	'hewiki' => 'numeric', // T146675
	'hrwiki' => 'uca-hr-u-kn', // T148749, T148682
	'hsbwiki' => 'uca-hsb', // T90689
	'huwiki' => 'uca-hu-u-kn', // T47596, T146675
	'ilowiki' => 'uca-tl-u-kn', // T149002
	'iswiki' => 'uca-is', // T58859
	'iswiktionary' => 'identity', // T32722
	'itwiki' => 'uca-it-u-kn', // T136647, T146675
	'ltwiki' => 'uca-lt', // T123627
	'lvwiki' => 'uca-lv', // T67003
	'mkwiki' => 'uca-mk-u-kn', // T26953
	'nlwiki' => 'uca-nl', // T125774
	'nowiki' => 'uca-nb-u-kn', // T146675, T148488
	'plwiki' => 'uca-pl-u-kn', // T44413, T146675
	'plwikisource' => 'uca-pl', // T86821
	'plwikivoyage' => 'uca-pl', // T47968
	'plwiktionary' => 'uca-default', // T48081
	'ptwiki' => 'uca-pt-u-kn', // T47911, T149002
	'ptwikibooks' => 'uca-pt', // T47911
	'rswikimedia' => 'uca-sr', // T115806
	'ruwiki' => 'uca-ru-u-kn', // T54997, T146675
	'ruwikibooks' => 'uca-ru', // T54997
	'ruwikinews' => 'uca-ru', // T54997
	'ruwikiquote' => 'uca-ru', // T54997
	'ruwikisource' => 'uca-ru', // T54997
	'ruwikiversity' => 'uca-ru', // T54997
	'ruwikivoyage' => 'uca-ru', // T54997
	'ruwiktionary' => 'uca-ru', // T54997
	'shwiki' => 'uca-hr-u-kn', // T69287, T149002
	'srwiki' => 'uca-sr-u-kn', // T115806, T149002
	'srwikibooks' => 'uca-sr', // T115806
	'srwikinews' => 'uca-sr', // T115806
	'srwikiquote' => 'uca-sr', // T115806
	'srwikisource' => 'uca-sr', // T115806
	'srwiktionary' => 'uca-sr', // T115806
	'skwiki' => 'uca-sk', // [[w:sk:Special:PermaLink/5785371]]
	'svwiki' => 'uca-sv-u-kn', // T47446, T142113
	'svwikisource' => 'uca-sv@collation=standard', // T48058
	'tawiki' => 'uca-ta', // T75453
	'tawikibooks' => 'uca-ta', // T75453
	'tawikinews' => 'uca-ta', // T75453
	'tawikiquote' => 'uca-ta', // T75453
	'tawikisource' => 'uca-ta', // T75453
	'tawiktionary' => 'uca-ta', // T75453
	'testwiki' => 'uca-default-u-kn', // T141433
	'thwikibooks' => 'uca-default', // T50097
	'thwikinews' => 'uca-default', // T50097
	'thwiki' => 'uca-default', // T50097
	'thwikiquote' => 'uca-default', // T50097
	'thwikisource' => 'uca-default', // T50097
	'thwiktionary' => 'uca-default', // T50097
	'uawikimedia' => 'uca-uk', // T47776
	'ukwiki' => 'uca-uk-u-kn', // T47444, T148682
	'ukwikibooks' => 'uca-uk', // T47776
	'ukwikinews' => 'uca-uk', // T47776
	'ukwikiquote' => 'uca-uk', // T47776
	'ukwikisource' => 'uca-uk', // T47776
	'ukwikivoyage' => 'uca-uk', // T48417
	'ukwiktionary' => 'uca-uk', // T47776
	'viwiki' => 'uca-vi-u-kn', // T47979, T146675
	'viwikibooks' => 'uca-vi', // T47979
	'viwikiquote' => 'uca-vi', // T47979
	'viwikisource' => 'uca-vi', // T47979
	'viwikivoyage' => 'uca-vi', // T55616
	'viwiktionary' => 'uca-vi', // T47979
],

Source: https://noc.wikimedia.org/conf/InitialiseSettings.php.txt

See also[edit]