Jump to content

Extension talk:CategoryTree

Add topic
From mediawiki.org
Latest comment: 2 months ago by Sdkb in topic Suppressing "no subcategories"

In lua

[edit]

if I can use this extension in Lua? R1F4T (talk) 04:22, 6 March 2025 (UTC)Reply

got the answerit works R1F4T (talk) 04:30, 6 March 2025 (UTC)Reply

Suppressing "no subcategories"

[edit]

When displaying a category tree where some paths have deeper branches than others, as here, is there any way to suppress the "no subcategories" note on the shallower branches? Sdkbtalk 02:24, 24 April 2025 (UTC)Reply

You could try blanking the page MediaWiki:categorytree-no-subcategories. Or try something in Common.css like i.CategoryTreeNotice { display: none; } - though maybe that class is used for other things too. Jonathan3 (talk) 20:26, 24 April 2025 (UTC)Reply
Thanks for the reply! Since I'm not able to change Commons MediaWiki pages and want the change to show up for others, not just myself, I'm unfortunately not sure if either of those will work. Sdkbtalk 22:41, 24 April 2025 (UTC)Reply
The second one could (if that class is indeed specific enough): using TemplateStyles. (However, please add a class to the wrapper table of c:Template:Category tree all, and scope the TemplateStyles style to that, so that eventual other category trees on the same page aren’t affected.) —Tacsipacsi (talk) 23:09, 25 April 2025 (UTC)Reply
Hmm, I'm not sure how to follow that, @Tacsipacsi. How would I follow that for the gallery on my Commons userpage? Sdkbtalk 22:07, 20 June 2025 (UTC)Reply