Last modified: 2005-12-17 11:26:17 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 146 - Special:Categories : Show the number of articles in the category
Special:Categories : Show the number of articles in the category
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Categories (Other open bugs)
unspecified
All All
: Normal enhancement with 3 votes (vote)
: ---
Assigned To: Joel Nothman
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2004-08-16 15:51 UTC by xmlizer
Modified: 2005-12-17 11:26 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Patch (1.13 KB, patch)
2005-11-24 02:35 UTC, Joel Nothman
Details
More efficient patch (1.14 KB, patch)
2005-11-24 02:53 UTC, Joel Nothman
Details

Description xmlizer 2004-08-16 15:51:58 UTC
This is list is useful, but with the number of link pointing on each category it
will be very useful
Comment 1 Antoine "hashar" Musso (WMF) 2004-08-16 16:07:48 UTC
There is already a count of the number of articles and subcategories for a category.
I am not sure how usefull it is to get the number of articles leading to that
category.
Maybe a count can be shown when a user request the "whatlinkshere" page.
Comment 2 xmlizer 2004-08-16 16:37:29 UTC
(In reply to comment #1)
> There is already a count of the number of articles and subcategories for a
category.

Yes you're right but you must click the link and see the page

> I am not sure how usefull it is to get the number of articles leading to that
> category.
It's more a king of beeing homogeneous than to be usefull 
Because in most of listings there is "page size"...here "page size" has to be
replaced by number of article, isn't it ?
> Maybe a count can be shown when a user request the "whatlinkshere" page.
do you mean whatlinkshere of "Special:Categories"? If so, why not !
but what would be the difference, may be the sorting order (by date)
Comment 3 xmlizer 2004-12-10 21:34:46 UTC
now that [[Special:Categories]] become huge it will become useful to check how
much is a category used, to know if we can easily rename it or something else
A presentation like

:
34. Mathematics (345 articles)
:
 and even, but it is a bonus, to sort by number of articles in category
Comment 4 Richard J. Holton 2005-03-23 17:59:20 UTC
Looking for a clarification:

Is the request for the number of articles in a given category? Or is the request
for the number of articles that link to the given category?

In other words, if an article includes a link like [[:Category:Foo]] but not a
category entry like [[Category:Foo]], would that page be counted?
Comment 5 Forrest O. 2005-05-05 06:28:26 UTC
I think this means the number of articles in parenthesis behind the cateogory
link in lists of categories, like Special:Categories and Category: pages that
have subcategories.  I agree that this would be quite useful.
Comment 6 Gatto Nero 2005-05-07 11:57:17 UTC
I'll find it useful too.
Most of Wikis are introducing Babel Templates... Babel templates create
categories in which every user is listed, so it will be nice for a user,
searching for someone who speaks a certain language, to know if in a category
there are people listed or not.

(Gosh, my english is awful!)
Comment 7 Forrest O. 2005-05-27 00:18:14 UTC
Also maybe have options to sort category lists by number of articles.
Comment 8 Robert Horning 2005-07-29 10:58:59 UTC
It would also be useful to know how many categories each "sub category" is
linked to, especially in a heirarchical setup.  You don't want to go more than
one layer deep (to avoid having to deal with circular paths), but when a
category is displaying subcats, put like:

Subcategory (5 articles 3 categories)

to show that something is there.
Comment 9 Brion Vibber 2005-11-24 02:20:03 UTC
Marking this as INVALID, it's not clear which of many different things the
request is about. Provide more details in a specific request, however note
that many possible areas are unlikely to ever have such numbers added.
Comment 10 Joel Nothman 2005-11-24 02:35:05 UTC
Created attachment 1094 [details]
Patch

places (n links) after category title in Special:Categories
Comment 11 Joel Nothman 2005-11-24 02:52:39 UTC
Comment on attachment 1094 [details]
Patch

sets count to value, ie sort-key. Therefore very inefficient.
Comment 12 Joel Nothman 2005-11-24 02:53:34 UTC
Created attachment 1095 [details]
More efficient patch

Leaves sort key constant, thus removing huge overhead.
Comment 13 Jamie Hari 2005-12-17 07:45:47 UTC
Has this been considered for inclusion in the forthcoming 1.6 version?
Comment 14 Joel Nothman 2005-12-17 11:25:37 UTC
It seems it's been included already in the current version. Maybe this 
ticket should be closed, then.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links