When a page is categorized in both a category and a parent of that category (for example, if a page is in Birds and also Animals - Animals is a parent of Birds), highlight both in the categories list at the bottom of the page.
This script was written during a single lightning talk (OK, well, two lightning talks) at WikiConference North America 2023. Thanks Buidhe for suggesting it!
Installation instructions
editHint: It's much easier if you get ScriptInstaller, then navigate to User:Enterprisey/parent-cats.js and click "Install" at the top.
However, here's the manual method:
- Place
{{subst:iusc|User:Enterprisey/parent-cats.js}}
on Special:MyPage/common.js or a skin-specific page, like Special:MyPage/vector.js. - Clear your cache and enjoy!