Last modified: 2013-08-04 18:25:13 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 T50745, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 48745 - {{PAGESINCAT:Foo|subpages}} Magic Word
{{PAGESINCAT:Foo|subpages}} Magic Word
Status: PATCH_TO_REVIEW
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Normal enhancement with 1 vote (vote)
: ---
Assigned To: Tyler Romeo
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-23 11:52 UTC by Technical 13
Modified: 2013-08-04 18:25 UTC (History)
2 users (show)

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


Attachments

Description Technical 13 2013-05-23 11:52:03 UTC
Is there an easy way to get the total number of subpages in a category such as {{PAGESINCAT:Foo|subpages}}? This would be useful for keeping track of members of maintenance categories that are segregated by month or year such as any one of the 154 at the time of this posting http://en.wikipedia.org/wiki/Category:Wikipedia_maintenance_categories_sorted_by_month
Comment 1 Tyler Romeo 2013-05-29 01:51:00 UTC
Yes, it's {{PAGESINCATEGORY:categoryname|subpages}}. See http://www.mediawiki.org/wiki/Help:Magic_words#Statistics for more information.
Comment 2 Technical 13 2013-05-29 11:07:12 UTC
Unless it is undocumented and I was attempting to use it incorrectly and your line there has a syntax typo, |subpage(s) doesn't work.  Only all, pages, subcats, and files are listed.
Comment 3 Tyler Romeo 2013-05-29 13:47:55 UTC
Oh oh oh. My apologies. I completely misread what you were saying.
Comment 4 Gerrit Notification Bot 2013-05-29 15:52:24 UTC
Related URL: https://gerrit.wikimedia.org/r/66003 (Gerrit Change I93ce7bcd1e907da4ab01b3ca9f1026c5bdc229f6)
Comment 5 Tyler Romeo 2013-05-29 15:54:49 UTC
The above linked patch adds a new keyword NUMBEROFSUBPAGES, which is a little more generic than just a category version, but should fulfill the functionality you're looking for. Now for code review...
Comment 6 Technical 13 2013-08-04 17:51:29 UTC
Bumping/elevating this as this patch has been waiting a couple months already and appears to just need to be implemented.
Comment 7 Tyler Romeo 2013-08-04 18:25:13 UTC
(In reply to comment #6)
> Bumping/elevating this as this patch has been waiting a couple months already
> and appears to just need to be implemented.

Actually the patch already implements it. It just needs to be code reviewed and merged. :P

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


Navigation
Links