Module:Multilingual description/sort
From Neodyland Wiki
More actions
This documentation is transcluded from Module:Multilingual description/sort/doc.
--[[
The documented sort order is by script, then alphabetically by displayed native name (as generated by {{#language: code}}), using the default DUCET order.
This allows easier selection by users reading the lists of languages in order to find their own.
Please test this order, and maintain it as complete as possible, including legacy codes still used in MediaWiki.
Any missing language will be sorted after all languages listed below, just using its internal language code.
Note: this resource-only module cannot have a "runTest()" member without breaking the returned list itself
(except by inserting it in its metatable, something still not implemented in the generic module testsuite).
For now, tests will be in the separate /testcases subpage.
]]
local p = {
-- LTR scripts
-- Latin alphabets
--[[A]] 'ang', 'af', 'als', 'an', 'ast', 'az',
--[[B]] 'id', 'ms', 'nan', 'zh-min-nan', 'su', 'jv', 'bar', 'bs', 'br',
--[[C]] 'ca', 'ceb', 'cs', 'co', 'cy',
--[[D]] 'da', 'pdc', 'de', 'de-formal', 'nv', 'dsb',
--[[E]] 'et', 'en', 'simple', 'es', 'eo', 'ext', 'eu',
--[[F]] 'fo', 'fr', 'fy',
--[[G]] 'ga', 'gd', 'gl',
--[[H]] 'haw', 'hsb', 'hr',
--[[I]] 'io', 'ia', 'ie', 'ik', 'zu', 'is', 'it',
--[[K]] 'kr', 'pam', 'csb', 'rn', 'kw', 'sw', 'ht', 'ku', 'ku-latn',
--[[L]] 'la', 'lv', 'lb', 'lt', 'li', 'lg',
--[[M]] 'hu', 'mg', 'mt',
--[[N]] 'nah', 'nap', 'nl', 'nds-nl', 'cr', 'no', 'nn',
--[[O]] 'oc',
--[[P]] 'pms', 'nds', 'pl', 'pt', 'pt-br',
--[[Q]] 'crh',
--[[R]] 'ty', 'ksh', 'ro', 'qu',
--[[S]] 'sc', 'se', 'sdc', 'sco', 'stq', 'sq', 'sk', 'sl', 'szl', 'fi', 'sv',
--[[T]] 'tl', 'vi', 'tk', 'tr',
--[[V]] 'vec', 'vo',
--[[W]] 'wa', 'vls', 'war',
--[[Y]] 'yo',
--[[Z]] 'diq',
-- Latin OR Cyrillic alphabets
'sh', -- most often Latin
'sr', -- most often Cyrillic
-- Cyrillic alphabets
--[[Б]] 'ba', 'be', 'be-tarask', 'bg',
--[[К]] 'kk', 'ky',
--[[Л]] 'lbe',
--[[М]] 'mk', 'mo', 'mn',
--[[О]] 'os',
--[[Р]] 'ru',
--[[C]] 'cu',
--[[Т]] 'tg', 'tt',
--[[У]] 'uk',
--[[Х]] 'xal',
--[[Ч]] 'cv',
-- Greek or Coptic alphabets
'el',
-- Other European alphabets
'hy', 'ka',
-- Indian abugidas
'bn', 'bpy', 'gu', 'hi', 'kn', 'ml', 'mr', 'ne', 'or', 'ta', 'te',
-- Tibetan abugidas
'bo', 'dz',
-- Other South-East Asian abugidas
'km', 'lo', 'si', 'th',
-- Syllabaries
'chr', 'am', 'ti',
-- Korean scripts (alphabet and sinograms) and Japanese scripts (syllabaries and sinograms)
'ko', 'ja',
-- Sinographic scripts
'wuu', 'yue',
'zh', 'zh-hans', 'zh-cn', 'zh-sg',
'zh-hant', 'zh-tw', 'zh-mo',
'lzh', 'zh-classical',
-- RTL scripts
-- Hebrew abjad
'he', 'yi',
-- Arabic abjads
--[[ا]] 'ur', 'ik',
--[[پ]] 'ps',
--[[س]] 'sd',
--[[ف]] 'fa',
--[[ك]] 'ku-arab',
--[[ک]] 'ks-arab', 'ckb', 'glk',
--[[م]] 'mzn', 'zu',
--[[ئ]] 'ug',
}
return p