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

edit

Hint: 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:

  1. Place {{subst:iusc|User:Enterprisey/parent-cats.js}} on Special:MyPage/common.js or a skin-specific page, like Special:MyPage/vector.js.
  2. Clear your cache and enjoy!

See also

edit
  NODES
Note 1