Last modified: 2011-01-25 01:38:17 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T24647, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 22647 - Show number of members for categories in search results
Show number of members for categories in search results
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Search (Other open bugs)
1.17.x
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch, patch-need-review
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-02-25 14:19 UTC by Lejonel
Modified: 2011-01-25 01:38 UTC (History)
2 users (show)

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


Attachments
patch to display category sizes differently in search results (2.25 KB, patch)
2010-03-15 12:01 UTC, Lejonel
Details
a new patch where I tried to fix the mentioned problems (2.75 KB, patch)
2010-03-15 20:07 UTC, Lejonel
Details

Description Lejonel 2010-02-25 14:19:44 UTC
When searching on Commons results gives information about the size of pages.

In most cases it is something like:
   203 B (20 words) - 10:40, 14 February 2010

For images this is changed to the image size:
   2,112×2,816 (2,681,964 bytes) - 02:26, 12 August 2009

For categories I think number of category members is a more useful measure of size. The info could be presented as:
   123 category members (100 pages, 20 files, 3 subcategories) - 10:40, 14 February 2010
Comment 1 Lejonel 2010-03-15 12:01:49 UTC
Created attachment 7202 [details]
patch to display category sizes differently in search results
Comment 2 Lejonel 2010-03-15 12:05:22 UTC
I made a patch to do this.

(It is in standard MediaWiki, so changing component from Extensions.)
Comment 3 Chad H. 2010-03-15 12:08:24 UTC
1. Numbers should go through $wgLang->formatNum().
2. New message should go in messages.inc.
3. Minor nitpick: we usually say 'n pages', rather than 'n members'
Comment 4 Lejonel 2010-03-15 20:07:42 UTC
Created attachment 7203 [details]
a new patch where I tried to fix the mentioned problems

Here is another try.
*$wgLang->formatNum is used on numbers
*The new message is added to messages.inc
*It is not very important to me, but I choose the word "members" because (as far as I can see) the number is the total of pages, subcategories and files in the category. It is the same as the message 'nmembers' used in Special:Categories.
Comment 5 Siebrand Mazeland 2010-04-20 23:07:34 UTC
Applied in r65351. Thanks.

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


Navigation
Links