Last modified: 2014-04-15 06:22:17 UTC
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.
*** 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.