MediaWiki:Common.css: Difference between revisions
MediaWiki interface page
More actions
MDElliottMD (talk | contribs) 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. |
MDElliottMD (talk | contribs) Auto-list hide rule: add Category:CuratedCategoryPage, make skin-independent and !important, per home-claude category-page spec |
||
| Line 64: | Line 64: | ||
} | } | ||
/* ===== End Pendell's corner ===== */ | /* ===== End Pendell's corner ===== */ | ||
/* | /* Hide MediaWiki's auto-generated category member listing on category | ||
MedCategory pages | pages that supply their own curated, prose-led member index. Two | ||
marker tags trigger the hide: | |||
Category:MedCategoryFull MedCategory class pages | |||
Category:CuratedCategoryPage canonical category pages (home-claude | |||
category-page structure, 2026-05-20) | |||
body:has(#mw-normal-catlinks a[title="Category:MedCategoryFull"]) .mw-category-generated { display: none; } | Scoping uses :has() on the marker link in the catlinks block, so any | ||
page carrying either marker is hidden automatically. Category | |||
membership, navigation, and the API listing are unaffected: this is | |||
display-only. | |||
This rule is intentionally SKIN-INDEPENDENT and must keep working | |||
under every skin (pharma default, plants overlay, any future skin). | |||
display: none is set !important and the selector carries id-level | |||
specificity, so a skin stylesheet cannot quietly re-show the | |||
auto-list. Future skin authors: do not override this. The curated | |||
index is the intended member listing on these pages. */ | |||
body:has(#mw-normal-catlinks a[title="Category:MedCategoryFull"]) .mw-category-generated, | |||
body:has(#mw-normal-catlinks a[title="Category:CuratedCategoryPage"]) .mw-category-generated { display: none !important; } | |||