Page MenuHomePhabricator

In pages mode or with other specified namespace, list only categories directly or indirectly containing what requested
Open, MediumPublicFeature

Description

From bug 38214 comment 4:
I need it to only show the categories
containing pages, not all the categories. See:
*http://commons.wikimedia.org/wiki/User:Timeshifter/Sandbox_8

*http://commons.wikimedia.org/w/index.php?title=Special%3ACategoryTree&target=Astronomy&mode=pages&dotree=Show+tree

I suspect this might be very difficult or impossible because to know whether to include a category you'd have to explore all its subcategories.

Bug 17117 might be a duplicate but is unclear.


Version: master
Severity: enhancement

Details

Reference
bz39641

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:09 AM
bzimport set Reference to bz39641.
bzimport added a subscriber: Unknown Object (MLST).
  • Bug 38214 has been marked as a duplicate of this bug. ***

Thanks Nemo_bis for starting this bug and pointing me to this:
*http://commons.wikimedia.org/wiki/Template:Category_tree_all
*http://commons.wikimedia.org/wiki/Special:CategoryTree

At the example listed in the first comment in this Bugzilla thread:
*http://commons.wikimedia.org/wiki/User:Timeshifter/Sandbox_8
only 5 of the subcategories listed immediately below Category:Astronomy on the Commons contain pages (galleries). I would prefer that the other 26 subcategories that do not contain pages not be listed.

Maybe some people want to see all the categories, but people at this discussion linked below only want a way to see an overview of galleries.
*http://commons.wikimedia.org/wiki/Commons:Categories_for_discussion/2012/07/Category:Gallery_pages

I would like a parameter added to Template:Category_tree_all that would prevent those 26 subcategories without pages from being listed.

I do not see why the exploration of the subcategories by the CategoryTree software would stop the ability to not list them after they were explored and found empty of pages.

There has to be a way to access and more easily show in an organized way some of the 106,000 galleries on the Commons. That number comes from here:
*http://commons.wikimedia.org/wiki/Help:Namespaces - "(Gallery) {{ns:0}}" in the left column. Namespace 0.

Aklapper changed the subtype of this task from "Task" to "Feature Request".Feb 4 2022, 12:24 PM
Aklapper removed a subscriber: wikibugs-l-list.