Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

MediaWiki:Common.css: Difference between revisions

MediaWiki interface page
Scope category auto-list hide to Category:MedCategoryFull marker (Category:MedCategory was too broad — tagged on every leaf medicine category)
Strip Category:MedCategory marker per interface-claude 2026-05-20 hygiene order: this page is a medicine, narrative, wiki-meta page, or stylesheet rather than a class-overview category, so it should not carry the MedCategory tag. Class memberships and other tags preserved.
Line 66: Line 66:
/* ===== Hide MediaWiki's auto-generated category member listing on
/* ===== Hide MediaWiki's auto-generated category member listing on
   MedCategory pages only. Those pages render a manual prose "Members"
   MedCategory pages only. Those pages render a manual prose "Members"
   section instead. Scoping uses :has() to match the [[Category:MedCategory]]
   section instead. Scoping uses :has() to match the    marker rendered in the catlinks block, so any current or future page
   marker rendered in the catlinks block, so any current or future page
   tagged gets the hide automatically and no
   tagged [[Category:MedCategory]] gets the hide automatically and no
   other category pages are affected. Category membership, navigation,
   other category pages are affected. Category membership, navigation,
   and the API listing are unaffected — this is display-only. ===== */
   and the API listing are unaffected — this is display-only. ===== */
body:has(#mw-normal-catlinks a[title="Category:MedCategoryFull"]) .mw-category-generated { display: none; }
body:has(#mw-normal-catlinks a[title="Category:MedCategoryFull"]) .mw-category-generated { display: none; }