GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||
GeezerVison is showing phabricator.wikimedia.org — T40435 Sortkey for categories is ignored when category is inside a <ref> and DEFAULTSORT comes after <references/>
Assigned To None Authored By
Referenced Files None
Description See URL for an example. The source is like this: Text<ref>[[Category:Test]]</ref>[[Category:Test2]]
<references />
{{DEFAULTSORT:Sortkey}}Expected result: Actual result: When you put the DEFAULTSORT before the <references/> it works as expected. I don't know how this is handled internally, so this could be just a duplicate of T4700. Version: unspecified
Details
Related Changes in Gerrit:
Related Objects
Event Timeline• bzimport raised the priority of this task from to Low.Nov 22 2014, 12:45 AM2014-11-22 00:45:20 (UTC+0) • bzimport set Reference to bz38435. Comment Actions The problem exist also for tags of core: <gallery>File:Wiki.png|desc[[Category:Test]]</gallery> {{DEFAULTSORT:Sortkey}} category links are added when the wikilinks are handled, for tags this is done within the tag processing because tags always return html. At this point the defaultsort is maybe not set and the category gets an empty sortkey, which than result in the page name as default. A solution is to look for the old defaultsort at the already added categories when setting the new defaultsort, but that will also change the custom sortkey, when he is equal to the old defaultsort. Need some extra doing at the end of the parse. Comment Actions
Comment Actions Even if this may seem like something that will only rarely occur in a Wiki environment, it does indeed happen quite often as soon as templates (for database weblinks, literature etc.) are used in references that add maintenance categories for missing data etc. Izno moved this task from Unsorted backlog to Defect backlog on the Cite board.Aug 22 2016, 7:20 PM2016-08-22 19:20:30 (UTC+0) Tacsipacsi updated the task description. (Show Details)Jul 25 2018, 11:26 AM2018-07-25 11:26:14 (UTC+0) Comment ActionsAccording to @Umherirrender, it’s not specific to Cite. Comment Actions Patch for this in T353530. Comment Actions Change 983434 had a related patch set uploaded (by C. Scott Ananian; author: C. Scott Ananian): [mediawiki/core@master] Substitute category default sort key when filling links table, not at parse time Comment Actions Change #983434 merged by jenkins-bot: [mediawiki/core@master] Substitute category default sort key when filling links table, not at parse time Comment Actions Being a decade-old bug, I think it’s newsworthy that it has been fixed (draft added to Tech/News/2024/16). Comment Actions
Thanks for adding it to Tech News. UOzurumba moved this task from To Triage to In current Tech/News draft on the User-notice board.Apr 12 2024, 8:23 PM2024-04-12 20:23:01 (UTC+0) Comment Actions Change #1020865 had a related patch set uploaded (by Arlolra; author: C. Scott Ananian): [mediawiki/core@REL1_42] Substitute category default sort key when filling links table, not at parse time Quiddity moved this task from In current Tech/News draft to Already announced/Archive on the User-notice board.Apr 18 2024, 5:47 PM2024-04-18 17:47:17 (UTC+0) Comment Actions Change #1020865 merged by jenkins-bot: [mediawiki/core@REL1_42] Substitute category default sort key when filling links table, not at parse time Maintenance_bot edited projects, added: User-notice-archive; removed: User-notice.Jun 24 2024, 7:31 PM2024-06-24 19:31:24 (UTC+0) Content licensed under Creative Commons Attribution-ShareAlike (CC BY-SA) 4.0 unless otherwise noted; code licensed under GNU General Public License (GPL) 2.0 or later and other open source licenses. By using this site, you agree to the Terms of Use, Privacy Policy, and Code of Conduct. · Wikimedia Foundation · Privacy Policy · Code of Conduct · Terms of Use · Disclaimer · CC-BY-SA · GPL · Credits | |||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |