The legacy feature includes styling for categories at the bottom of skins. Some skins, notably Minerva do not use these. Other skins, understandably want to use these.
Since categories relate to interface, a new "interface-category" feature is proposed.
- An import statement is added to legacy code to import category styles from a separate file "interface-category.less"
- A new interface-category feature is added to ResourceLoaderSkinModule that imports this file without the rest of legacy.
- Fix the documentation of ResourceLoaderSkinModule. The feature is named interface-category not category-interface.
Developer notes
the new feature should include the following styles:
#catlinks { /** * Overrides text justification (user preference) * See T33990 */ text-align: left; } .catlinks ul { display: inline; margin: 0; padding: 0; list-style: none none; } .catlinks li { display: inline-block; line-height: 1.25em; border-left: 1px solid #a2a9b1; margin: 0.125em 0; padding: 0 0.5em; } .catlinks li:first-child { padding-left: 0.25em; border-left: 0; } /* (T7346) make category redirects italic */ .catlinks li a.mw-redirect { font-style: italic; } /** * Hidden categories */ .mw-hidden-cats-hidden { display: none; } .catlinks-allhidden { display: none; }