Page MenuHomePhabricator

MediaWiki-CategoriesComponent
ActivePublic

Details

Description

Issues about MediaWiki core's categorisation feature, including its database schema, its API modules, and the Special:Categories and Special:RandomInCategory pages.

See MediaWiki-Page-editing and MediaWiki-Parser for issues with editing of pages and/or saving of categorisation changes.

Recent Activity

Fri, May 29

Maintenance_bot added a project to T427642: Create a new "format list" hook for CategoryViewer: MW-Interfaces-Team.
Fri, May 29, 2:30 PM · MW-Interfaces-Team, MediaWiki-Categories, MediaWiki-Core-Hooks
Saucy closed T422579: Make CategoryViewer easier to extend as Declined.

Closing in favor of T427642.

Fri, May 29, 2:09 PM · MediaWiki-Categories
Saucy created T427642: Create a new "format list" hook for CategoryViewer.
Fri, May 29, 2:07 PM · MW-Interfaces-Team, MediaWiki-Categories, MediaWiki-Core-Hooks

Wed, May 6

Pppery placed T419366: Category contents should not appear below invalid diff page up for grabs.
Wed, May 6, 5:34 PM · MediaWiki-Page-diffs, MediaWiki-Categories

Mon, May 4

Pppery claimed T419366: Category contents should not appear below invalid diff page.
Mon, May 4, 5:17 AM · MediaWiki-Page-diffs, MediaWiki-Categories

Apr 22 2026

Aklapper added a comment to T30397: Allow collation to be specified per category.

See https://stackoverflow.com/questions/4538732/what-does-collation-mean

Apr 22 2026, 8:36 AM · Patch-Needs-Improvement, All-and-every-Wiktionary, MediaWiki-Categories
Bugreporter2 added a comment to T30397: Allow collation to be specified per category.

What's a collation?

Apr 22 2026, 7:51 AM · Patch-Needs-Improvement, All-and-every-Wiktionary, MediaWiki-Categories

Apr 15 2026

Bhsd removed a project from T212713: With "Syntax highlighting" enabled in 2017 wikitext editor, source code is highlighted in white at first when editing category pages: SyntaxHighlight.
Apr 15 2026, 2:26 PM · MediaWiki-extensions-CodeMirror, Community-Tech, MediaWiki-Categories, VisualEditor, VisualEditor-MediaWiki-2017WikitextEditor
Bugreporter2 updated the task description for T423280: Script to automatically recategorise pages in a moved category.
Apr 15 2026, 2:08 AM · MediaWiki-Page-editing, MediaWiki-Categories
Bugreporter2 updated the task description for T423280: Script to automatically recategorise pages in a moved category.
Apr 15 2026, 2:04 AM · MediaWiki-Page-editing, MediaWiki-Categories
Bugreporter2 updated the task description for T423280: Script to automatically recategorise pages in a moved category.
Apr 15 2026, 2:02 AM · MediaWiki-Page-editing, MediaWiki-Categories
Bugreporter2 updated the task description for T423280: Script to automatically recategorise pages in a moved category.
Apr 15 2026, 1:30 AM · MediaWiki-Page-editing, MediaWiki-Categories

Apr 14 2026

HakanIST added a comment to T423280: Script to automatically recategorise pages in a moved category.

Nice idea ‚ worth noting that category refs can be inside templates/parser functions, so plain text replacement won't always work. Pywikibot's category.py move already does something similar.

Apr 14 2026, 7:47 PM · MediaWiki-Page-editing, MediaWiki-Categories
Prototyperspective added a comment to T4725: View list of articles in subcategories all on one page.

This is already possible with the deepcategory search operator. That's a hacky way and often does not work; it doesn't solve this issue but so far it wasn't mentioned here. Further info on missing things and available ways & tools here.

Apr 14 2026, 1:25 PM · Epic, MediaWiki-Categories
Bugreporter2 created T423280: Script to automatically recategorise pages in a moved category.
Apr 14 2026, 12:52 PM · MediaWiki-Page-editing, MediaWiki-Categories

Apr 10 2026

Maintenance_bot removed a project from T422579: Make CategoryViewer easier to extend: Patch-For-Review.
Apr 10 2026, 8:30 PM · MediaWiki-Categories
gerritbot added a comment to T422579: Make CategoryViewer easier to extend.

Change #1258362 abandoned by Saucy:

[mediawiki/core@master] CategoryViewer: Change access modifiers

https://gerrit.wikimedia.org/r/1258362

Apr 10 2026, 8:14 PM · MediaWiki-Categories
Zabe added a comment to T405812: Migrate categorylinks to virtual domain.

Places in core needing migration:

  • WikiFilePage::getForeignCategories()
Apr 10 2026, 1:14 AM · MW-1.46-notes (1.46.0-wmf.19; 2026-03-10), Patch-For-Review, DBA, MW-1.45-notes (1.45.0-wmf.23; 2025-10-14), MediaWiki-Categories, MediaWiki-Page-derived-data, Data-Persistence

Apr 9 2026

Saucy added a comment to T422579: Make CategoryViewer easier to extend.

If your implementation doesn't care about what sounds like 80 to 90% of the original class' implementation, why do we need to make these irrelevant parts public to subclasses?

Apr 9 2026, 8:15 AM · MediaWiki-Categories
thiemowmde added a comment to T422579: Make CategoryViewer easier to extend.

The reason for reusing the methods is that I have no reason to make the paging links, count message, etc., any different from what is generated by MediaWiki core. In fact, I want those components to be exactly the same as in vanilla MediaWiki.

Apr 9 2026, 6:52 AM · MediaWiki-Categories
Saucy added a comment to T422579: Make CategoryViewer easier to extend.

I do have a few questions:

  • The current PictoCategoryViewer class doesn't look complicated. How would that benefit from being able to reuse code from core's CategoryViewer class?
  • The patch https://gerrit.wikimedia.org/r/1258362 exposes 4 methods. Neither looks complicated, in my opinion. What is the benefit of reusing them rather than making your own custom version? Doing so gives you the chance to customize the code exactly to your needs without the need to add extra complexity to the base class.
  • Why does https://gerrit.wikimedia.org/r/1258362 expose 2 previously private properties?
  • The LanguageConverter should be changed to dependency injection via a constructor parameter.
  • Generally it sounds more like what you need is a hook that allows you to modify the presentation of each page link. Isn't that what the CategoryViewer::generateLink hook already does? Maybe it's just missing something and your problem can be solved by adding one or two new parameters to the hook?
Apr 9 2026, 6:26 AM · MediaWiki-Categories

Apr 8 2026

thiemowmde added a comment to T422579: Make CategoryViewer easier to extend.

I do have a few questions:

  • The current PictoCategoryViewer class doesn't look complicated. How would that benefit from being able to reuse code from core's CategoryViewer class?
  • The patch https://gerrit.wikimedia.org/r/1258362 exposes 4 methods. Neither looks complicated, in my opinion. What is the benefit of reusing them rather than making your own custom version? Doing so gives you the chance to customize the code exactly to your needs without the need to add extra complexity to the base class.
  • Why does https://gerrit.wikimedia.org/r/1258362 expose 2 previously private properties?
  • The LanguageConverter should be changed to dependency injection via a constructor parameter.
  • Generally it sounds more like what you need is a hook that allows you to modify the presentation of each page link. Isn't that what the CategoryViewer::generateLink hook already does? Maybe it's just missing something and your problem can be solved by adding one or two new parameters to the hook?
Apr 8 2026, 7:43 AM · MediaWiki-Categories
gerritbot added a project to T422579: Make CategoryViewer easier to extend: Patch-For-Review.
Apr 8 2026, 7:27 AM · MediaWiki-Categories
gerritbot added a comment to T422579: Make CategoryViewer easier to extend.

Change #1258362 had a related patch set uploaded (by Thiemo Kreuz (WMDE); author: Saucy):

[mediawiki/core@master] CategoryViewer: Change access modifiers

https://gerrit.wikimedia.org/r/1258362

Apr 8 2026, 7:27 AM · MediaWiki-Categories
Saucy created T422579: Make CategoryViewer easier to extend.
Apr 8 2026, 6:16 AM · MediaWiki-Categories

Apr 6 2026

Izno removed a parent task for T30411: titles of articles with LTR titles in RTL wikis may be displayed incorrectly in categories and special pages: T30708: BiDi: LTR and RTL mixed up (tracking).
Apr 6 2026, 6:31 AM · MediaWiki-Categories, RTL, I18n

Apr 5 2026

Hridyesh_Gupta moved T414599: migrateLinksTable migration query fails for Postgres from Incoming to Completed on the RoadToWiki board.
Apr 5 2026, 6:23 PM · PostgreSQL, RoadToWiki, MW-1.45-notes, MW-1.46-notes (1.46.0-wmf.15; 2026-02-10), MW-1.45-release, MediaWiki-Maintenance-system, MediaWiki-Categories, MediaWiki-Page-derived-data

Mar 31 2026

Pppery edited projects for T340606: Decide what to do about the edit-form's hidden categories list, added: Patch-Needs-Improvement; removed Patch-For-Review.
Mar 31 2026, 2:42 AM · Patch-Needs-Improvement, User-notice-archive, Community-Tech (CommTech-Kanban), MediaWiki-Categories, MediaWiki-Page-editing
Pppery edited projects for T354139: Category sortkeys are not handled properly if they contain '' or ''', added: Patch-Needs-Improvement; removed Patch-For-Review.
Mar 31 2026, 2:10 AM · Patch-Needs-Improvement, Parsoid, MediaWiki-Categories, MediaWiki-Parser
Pppery edited projects for T30397: Allow collation to be specified per category, added: Patch-Needs-Improvement; removed Patch-For-Review.
Mar 31 2026, 2:09 AM · Patch-Needs-Improvement, All-and-every-Wiktionary, MediaWiki-Categories
Pppery edited projects for T17941: create magic word __NOCATEGORY__, added: Patch-Needs-Improvement; removed Patch-For-Review.
Mar 31 2026, 2:08 AM · Patch-Needs-Improvement, MediaWiki-Categories
Pppery edited projects for T200703: Special:RandomInCategory does not return all pages with equal probability, added: Patch-Needs-Improvement; removed Patch-For-Review.
Mar 31 2026, 2:08 AM · Patch-Needs-Improvement, MediaWiki-libs-Rdbms, MediaWiki-extensions-RandomInCategory, Platform Team Workboards (Clinic Duty Team), MediaWiki-Categories
Pppery edited projects for T47611: Make the "uca-xx" category collations the default during installation (with fallbacks), added: Patch-Needs-Improvement; removed Patch-For-Review.
Mar 31 2026, 1:24 AM · Patch-Needs-Improvement, MediaWiki-Installer, I18n, Design, MediaWiki-Categories
Pppery edited projects for T329469: Pages containing categories in language variants prefixed with a valid namespace links to that namespace, added: Patch-Needs-Improvement; removed Patch-For-Review.
Mar 31 2026, 1:23 AM · Patch-Needs-Improvement, MediaWiki-Categories, Chinese-Sites, MediaWiki-Language-converter
Pppery edited projects for T5311: Automatic category redirects, added: Patch-Needs-Improvement; removed Patch-For-Review.
Mar 31 2026, 1:10 AM · Patch-Needs-Improvement, MediaWiki-Redirects, Hungarian-Sites, Community-Wishlist-Survey-2016, Contributors-Team, MediaWiki-Categories
Pppery edited projects for T85372: Add support for per-category editnotices, added: Patch-Needs-Improvement; removed Patch-For-Review.
Mar 31 2026, 1:04 AM · Patch-Needs-Improvement, MediaWiki-Editnotice, MediaWiki-Categories, MediaWiki-Page-editing
Pppery edited projects for T245310: API calls ignoring cmendsortkeyprefix parameter when continue parameter is present, added: Patch-Needs-Improvement; removed Patch-For-Review.
Mar 31 2026, 12:18 AM · Patch-Needs-Improvement, MW-Interfaces-Team, MediaWiki-Categories, Platform Team Workboards (External Code Reviews), MediaWiki-Action-API

Mar 30 2026

gerritbot added a project to T245310: API calls ignoring cmendsortkeyprefix parameter when continue parameter is present: Patch-For-Review.
Mar 30 2026, 11:46 PM · Patch-Needs-Improvement, MW-Interfaces-Team, MediaWiki-Categories, Platform Team Workboards (External Code Reviews), MediaWiki-Action-API
gerritbot added a comment to T245310: API calls ignoring cmendsortkeyprefix parameter when continue parameter is present.

Change #575398 restored by Thcipriani:

[mediawiki/core@master] Api: Populate variables startsortkey and endsortkey before conditional check

https://gerrit.wikimedia.org/r/575398

Mar 30 2026, 11:46 PM · Patch-Needs-Improvement, MW-Interfaces-Team, MediaWiki-Categories, Platform Team Workboards (External Code Reviews), MediaWiki-Action-API
gerritbot added a project to T85372: Add support for per-category editnotices: Patch-For-Review.
Mar 30 2026, 11:36 PM · Patch-Needs-Improvement, MediaWiki-Editnotice, MediaWiki-Categories, MediaWiki-Page-editing
gerritbot added a comment to T85372: Add support for per-category editnotices.

Change #189178 restored by Thcipriani:

[mediawiki/core@master] Add per-category editnotices

https://gerrit.wikimedia.org/r/189178

Mar 30 2026, 11:36 PM · Patch-Needs-Improvement, MediaWiki-Editnotice, MediaWiki-Categories, MediaWiki-Page-editing
gerritbot added a project to T5311: Automatic category redirects: Patch-For-Review.
Mar 30 2026, 11:35 PM · Patch-Needs-Improvement, MediaWiki-Redirects, Hungarian-Sites, Community-Wishlist-Survey-2016, Contributors-Team, MediaWiki-Categories
gerritbot added a comment to T5311: Automatic category redirects.

Change #65176 restored by Thcipriani:

[mediawiki/core@master] Automatically move category members when redirected

https://gerrit.wikimedia.org/r/65176

Mar 30 2026, 11:35 PM · Patch-Needs-Improvement, MediaWiki-Redirects, Hungarian-Sites, Community-Wishlist-Survey-2016, Contributors-Team, MediaWiki-Categories
gerritbot added a comment to T35723: using "from=" in category urls can incorrectly say that categories are empty.

Change #789968 restored by Thcipriani:

[mediawiki/core@master] CategoryViewer: Display count link if from/until parameter is set

https://gerrit.wikimedia.org/r/789968

Mar 30 2026, 11:31 PM · Patch-For-Review, RoadToWiki, good first task, MediaWiki-Categories
gerritbot added a project to T329469: Pages containing categories in language variants prefixed with a valid namespace links to that namespace: Patch-For-Review.
Mar 30 2026, 11:27 PM · Patch-Needs-Improvement, MediaWiki-Categories, Chinese-Sites, MediaWiki-Language-converter
gerritbot added a comment to T329469: Pages containing categories in language variants prefixed with a valid namespace links to that namespace.

Change #887962 restored by Thcipriani:

[mediawiki/core@master] LanguageConverter: Keep the namespace unchanged for findVariantLink()

https://gerrit.wikimedia.org/r/887962

Mar 30 2026, 11:27 PM · Patch-Needs-Improvement, MediaWiki-Categories, Chinese-Sites, MediaWiki-Language-converter
gerritbot added a project to T47611: Make the "uca-xx" category collations the default during installation (with fallbacks): Patch-For-Review.
Mar 30 2026, 11:27 PM · Patch-Needs-Improvement, MediaWiki-Installer, I18n, Design, MediaWiki-Categories
gerritbot added a comment to T47611: Make the "uca-xx" category collations the default during installation (with fallbacks).

Change #327762 restored by Thcipriani:

[mediawiki/core@master] Make language-appropriate collations default during install

https://gerrit.wikimedia.org/r/327762

Mar 30 2026, 11:27 PM · Patch-Needs-Improvement, MediaWiki-Installer, I18n, Design, MediaWiki-Categories
gerritbot added a project to T200703: Special:RandomInCategory does not return all pages with equal probability: Patch-For-Review.
Mar 30 2026, 11:13 PM · Patch-Needs-Improvement, MediaWiki-libs-Rdbms, MediaWiki-extensions-RandomInCategory, Platform Team Workboards (Clinic Duty Team), MediaWiki-Categories
gerritbot added a comment to T200703: Special:RandomInCategory does not return all pages with equal probability.

Change #533728 restored by Thcipriani:

[mediawiki/core@master] Better randomness for Special:RandomInCat and no more subcats

https://gerrit.wikimedia.org/r/533728

Mar 30 2026, 11:13 PM · Patch-Needs-Improvement, MediaWiki-libs-Rdbms, MediaWiki-extensions-RandomInCategory, Platform Team Workboards (Clinic Duty Team), MediaWiki-Categories