Page MenuHomePhabricator

Allow independent category paging limit for pages, subpages and images
Open, Needs TriagePublic

Description

Currently, the paging limit for categories is controlled by the $wgCategoryPagingLimit configuration parameter. This paging limit controls both the number of pages and files displayed in a category. Although listing 100 or 200 pages is acceptable, doing so for images may not be desirable.

Thus, it would be beneficial to have a configuration parameter for the maximum number of files listed in a category, e.g., $wgCategoryImageListingLimit or a similar setting.

Event Timeline

Reedy renamed this task from Allow independet category paging limit for pages and images to Allow independent category paging limit for pages and images.Jul 23 2025, 1:57 PM

In fact, there are 3 things displayed in a category:

  • pages
  • images
  • subcategories

Instead of a new variable, I suggest changing $wgCategoryPagingLimit to be an array, to allow a more fine-grained control:

$wgCategoryPagingLimit = [
    'pages' => 200,
    'images' => 200,
    'subcategories' => 200,
];

If defined as an integer in LocalSettings.php, it would mean using the same value for all 3 items.

Looks like I am not the only one linking this. Thanks for your feedback. Yeah, your suggestion for improvement is even better. I forgot about subpage listings.

Kghbln renamed this task from Allow independent category paging limit for pages and images to Allow independent category paging limit for pages, subpages and images.Jul 23 2025, 5:02 PM