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
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:
- 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!
See also
🔥 Top keywords: Main PageSpecial:SearchIndian Premier LeagueWikipedia:Featured picturesPornhubUEFA Champions League2024 Indian Premier LeagueFallout (American TV series)Jontay PorterXXXTentacionAmar Singh ChamkilaFallout (series)Cloud seedingReal Madrid CFCleopatraRama NavamiRichard GaddDeaths in 2024Civil War (film)Shōgun (2024 miniseries)2024 Indian general electionJennifer PanO. J. SimpsonElla PurnellBaby ReindeerCaitlin ClarkLaverne CoxXXX (film series)Facebook2023–24 UEFA Champions LeagueYouTubeCandidates Tournament 2024InstagramList of European Cup and UEFA Champions League finalsJude BellinghamMichael Porter Jr.Andriy LuninCarlo AncelottiBade Miyan Chote Miyan (2024 film)