Interwiki sorting order
From Meta, a Wikimedia project coordination wiki
A list of sorting orders used in Wikimedia projects.
Contents |
[edit] MediaWiki engine support
Bugzilla bug 2867 is a request to allow sites, and, eventually individual users, to define their own interwiki sorting order.
Please see comments explaining how and why it should be done, and vote for the bug 2867.
[edit] By order of alphabet, based on language code
- e.g. Esperanto (eo:) before Español (es:), Suomi (fi:) somewhere before Français (fr:) and Bahasa Indonesia (id:) right before Interlingue (ie:)
- Default order for most Wikipedias
[edit] Using own language's alphabetical order
Fy: Orders i and y together. Only when two codes are otherwise the same, e.g. 'io' and 'yo', or 'hi' and 'hy', a secondary ordering is used where i goes before y. (The same holds, or should hold, for a and â, for e and ê, etc., but this has no influence on the language code order.)
[edit] By order of alphabet, based on local language
- e.g. Español before Esperanto, Bahasa Indonesia right before Interlingua and Suomi right before Svenska
[edit] Sorting order
self.alphabetic = [
'ace', 'af', 'ak', 'als', 'am', 'ang', 'ab', 'ar', 'an', 'arc',
'roa-rup', 'frp', 'as', 'ast', 'gn', 'av', 'ay', 'az', 'bm', 'bn',
'zh-min-nan', 'nan', 'map-bms', 'ba', 'be', 'be-x-old', 'bh', 'bcl',
'bi', 'bar', 'bo', 'bs', 'br', 'bg', 'bxr', 'ca', 'cv', 'ceb', 'cs',
'ch', 'cbk-zam', 'ny', 'sn', 'tum', 'cho', 'co', 'cy', 'da', 'dk',
'pdc', 'de', 'dv', 'nv', 'dsb', 'dz', 'mh', 'et', 'el', 'eml', 'en',
'myv', 'es', 'eo', 'ext', 'eu', 'ee', 'fa', 'hif', 'fo', 'fr', 'fy',
'ff', 'fur', 'ga', 'gv', 'gd', 'gl', 'gan', 'ki', 'glk', 'gu',
'got', 'hak', 'xal', 'ko', 'ha', 'haw', 'hy', 'hi', 'ho', 'hsb',
'hr', 'io', 'ig', 'ilo', 'bpy', 'id', 'ia', 'ie', 'iu', 'ik', 'os',
'xh', 'zu', 'is', 'it', 'he', 'jv', 'kl', 'kn', 'kr', 'pam', 'ka',
'ks', 'csb', 'kk', 'kw', 'rw', 'ky', 'rn', 'sw', 'kv', 'kg', 'ht',
'ku', 'kj', 'lad', 'lbe', 'lo', 'la', 'lv', 'lb', 'lt', 'lij', 'li',
'ln', 'jbo', 'lg', 'lmo', 'hu', 'mk', 'mg', 'ml', 'mt', 'mi', 'mr',
'arz', 'mzn', 'ms', 'cdo', 'mwl', 'mdf', 'mo', 'mn', 'mus', 'my',
'nah', 'na', 'fj', 'nl', 'nds-nl', 'cr', 'ne', 'new', 'ja', 'nap',
'ce', 'pih', 'no', 'nb', 'nn', 'nrm', 'nov', 'ii', 'oc', 'mhr',
'or', 'om', 'ng', 'hz', 'uz', 'pa', 'pi', 'pag', 'pnb', 'pap', 'ps',
'km', 'pcd', 'pms', 'tpi', 'nds', 'pl', 'tokipona', 'tp', 'pnt',
'pt', 'aa', 'kaa', 'crh', 'ty', 'ksh', 'ro', 'rmy', 'rm', 'qu',
'ru', 'sah', 'se', 'sm', 'sa', 'sg', 'sc', 'sco', 'stq', 'st', 'tn',
'sq', 'scn', 'si', 'simple', 'sd', 'ss', 'sk', 'cu', 'sl', 'szl',
'so', 'ckb', 'srn', 'sr', 'sh', 'su', 'fi', 'sv', 'tl', 'ta', 'kab',
'roa-tara', 'tt', 'te', 'tet', 'th', 'ti', 'tg', 'to', 'chr', 'chy',
've', 'tr', 'tk', 'tw', 'udm', 'bug', 'uk', 'ur', 'ug', 'za', 'vec',
'vi', 'vo', 'fiu-vro', 'wa', 'zh-classical', 'vls', 'war', 'wo',
'wuu', 'ts', 'yi', 'yo', 'zh-yue', 'diq', 'zea', 'bat-smg', 'zh',
'zh-tw', 'zh-cn'
]
[edit] Wikis using this sorting order
- English (en:)
- Lëtzebuergesch (lb:)
- Norsk (bokmål) (no:)
- Polski (pl:) (see Help:Interwiki)
- Simple English (simple:)
[edit] By order of alphabet, based on local language (by first word)
- e.g. Bahasa Indonesia before Bân-lâm-gú, Español before Esperanto and Suomi right before Svenska
[edit] Sorting order
self.alphabetic_revised = [
'ace', 'af', 'ak', 'als', 'am', 'ang', 'ab', 'ar', 'an', 'arc',
'roa-rup', 'frp', 'as', 'ast', 'gn', 'av', 'ay', 'az', 'id', 'ms',
'bm', 'bn', 'zh-min-nan', 'nan', 'map-bms', 'jv', 'su', 'ba', 'be',
'be-x-old', 'bh', 'bcl', 'bi', 'bar', 'bo', 'bs', 'br', 'bug', 'bg',
'bxr', 'ca', 'ceb', 'cv', 'cs', 'ch', 'cbk-zam', 'ny', 'sn', 'tum',
'cho', 'co', 'cy', 'da', 'dk', 'pdc', 'de', 'dv', 'nv', 'dsb', 'na',
'dz', 'mh', 'et', 'el', 'eml', 'en', 'myv', 'es', 'eo', 'ext', 'eu',
'ee', 'fa', 'hif', 'fo', 'fr', 'fy', 'ff', 'fur', 'ga', 'gv', 'sm',
'gd', 'gl', 'gan', 'ki', 'glk', 'gu', 'got', 'hak', 'xal', 'ko',
'ha', 'haw', 'hy', 'hi', 'ho', 'hsb', 'hr', 'io', 'ig', 'ilo',
'bpy', 'ia', 'ie', 'iu', 'ik', 'os', 'xh', 'zu', 'is', 'it', 'he',
'kl', 'kn', 'kr', 'pam', 'ka', 'ks', 'csb', 'kk', 'kw', 'rw', 'ky',
'rn', 'sw', 'kv', 'kg', 'ht', 'ku', 'kj', 'lad', 'lbe', 'lo', 'la',
'lv', 'to', 'lb', 'lt', 'lij', 'li', 'ln', 'jbo', 'lg', 'lmo', 'hu',
'mk', 'mg', 'ml', 'mt', 'mi', 'mr', 'arz', 'mzn', 'cdo', 'mwl',
'mdf', 'mo', 'mn', 'mus', 'my', 'nah', 'fj', 'nl', 'nds-nl', 'cr',
'ne', 'new', 'ja', 'nap', 'ce', 'pih', 'no', 'nb', 'nn', 'nrm',
'nov', 'ii', 'oc', 'mhr', 'or', 'om', 'ng', 'hz', 'uz', 'pa', 'pi',
'pag', 'pnb', 'pap', 'ps', 'km', 'pcd', 'pms', 'nds', 'pl', 'pnt',
'pt', 'aa', 'kaa', 'crh', 'ty', 'ksh', 'ro', 'rmy', 'rm', 'qu',
'ru', 'sah', 'se', 'sa', 'sg', 'sc', 'sco', 'stq', 'st', 'tn', 'sq',
'scn', 'si', 'simple', 'sd', 'ss', 'sk', 'sl', 'cu', 'szl', 'so',
'ckb', 'srn', 'sr', 'sh', 'fi', 'sv', 'tl', 'ta', 'kab', 'roa-tara',
'tt', 'te', 'tet', 'th', 'vi', 'ti', 'tg', 'tpi', 'tokipona', 'tp',
'chr', 'chy', 've', 'tr', 'tk', 'tw', 'udm', 'uk', 'ur', 'ug', 'za',
'vec', 'vo', 'fiu-vro', 'wa', 'zh-classical', 'vls', 'war', 'wo',
'wuu', 'ts', 'yi', 'yo', 'zh-yue', 'diq', 'zea', 'bat-smg', 'zh',
'zh-tw', 'zh-cn'
]
[edit] Wikis using this sorting order
[edit] Other rules
- עברית (he:) - English link is first and the rest are sorted alphabetically by language code. (he:ויקיפדיה:פרלמנט/ארכיון 3)
- Magyar (hu:) - English link is first and the rest are sorted alphabetically by language code. (hu:Wikipédia:Nagykövetség)
- Norsk (nynorsk) (nn:) - Norsk (bokmål) (
[[no:]]) link is the first, then Svensk ([[sv:]]) link, then Dansk ([[da:]]) link. Then the rest by order of alphabet, based on local language (by first word). See also nn:Wikipedia:Ambassaden for details/background. - Српски / srpski (sr:) - Sorts IW by local Latin alphabet. Sorting keys are either original language names transliterated to this alphabet, or their language codes, in case there is no transliteration possible. (sample)
- Telugu (te:) - English link is the first, hi:, kn:, ta:, ml: and the rest are sorted alphabetically by language code.
- יידיש (yi:) - English link is the first, then he:, de:, and the rest are sorted alphabetically (yi:וויקיפעדיע:געמיינדע).
- Urdu (ur:) - Arabic link is first, then Persian and then English. After that, all languages are sorted alphabetically by their native name. For more details, see Urdu Wikipedia Embassey or رائے شماری برائے ترتیب روابط
[edit] Note
If your language is using a different alphabetic ordering than the one given in the above overview, please inform the people from the Python Wikipediabot framework, and update this page!
This page should reflect local consensus, please try to link to local references as much as possible, to simplify its maintenance.