Page MenuHomePhabricator

MediaWiki:Categorytree-member-num should show count of files, subcategories and pages
Closed, ResolvedPublic

Description

Author: theevilipaddress

Description:
The message http://translatewiki.net/wiki/MediaWiki:Categorytree-member-num/en currently only shows the count of subcategories, which is only partially helpful when browsing subcategories. Most wikis have already tweaked this message with the ParserFunctions extension to show the number of subcats, files and pages if there are any, or "empty" if they don't exist (see URL for links). I believe that the message would also be useful like this by default, because it's quite some useful information to see the number of pages and files, too. Since ParserFunctions are an extension, the ifs would have to be done in the PHP code, probably by using different messages depending on if the specific groups have members.


Version: unspecified
Severity: enhancement
URL: http://translatewiki.net/wiki/Thread:Support/MediaWiki:Categorytree-member-num

Details

Reference
bz26405

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:14 PM
bzimport set Reference to bz26405.
bzimport added a subscriber: Unknown Object (MLST).

Just to see if I understand this bug, are you proposing a new value for mediawiki:categorytree-member-num (say $6) that says:

"Empty" if the category has 0 files, 0 subcats, and 0 pages

Otherwise a comma separated list of the counts, something like "4 files, 10 categories, 12 pages" (committing any item that is 0)

(With empty, $1 pages, $1 categories and $1 files being their own messages).

Is that correct?

comport wrote:

http://translatewiki.net/wiki/Thread%3ASupport/MediaWiki%3ACategorytree-member-num

http://www.mediawiki.org/wiki/Extension:CategoryTree#categorytree-member-num

The default value of this message is ($5) (see links above)

If translator on translatewiki.net use values $1, $2, $3, $4 in this message, displaying error: FUZZY
*Non-complete translate

  • $5 do not use
  • $4, $1, $2, $3, $2, $1, $2, $2, $3, $3 unknown (possible variants)

And then this message is excluding from MediaWiki updating.

And then each local project use personal variant of this message.

yes, bug 29357

  • This bug has been marked as a duplicate of bug 29357 ***