Board Thread:Support Requests - Getting Technical/@comment-35098892-20180826193224/@comment-9605025-20180903004350

Okay, here is the first draft of the main script. You will need to create a new JS page in the MediaWiki namespace and copy the following to there. I think MediaWiki:CategoryCSS.js would be a good name but you can choose whatever you want. Now, a bit more about how to use it. You will also need to add some stuff to either MediaWiki:Common.js (the more common choice) or MediaWiki:Wikia.js. It should look like the following: The strings on the left of the colons should be the names of the categories you want to use to set the pages' style. The strings on the right side of the colons should be the CSS pages (one (1) per category) that contain the custom CSS for the categories. In this example, if the page belongs to "Category:JRZBB", the CSS on "MediaWiki:JRZBB.css" will be loaded. You need not use the category name for the CSS page. I just did that to make things clearer.

Of course, since we are applying the styles using CSS pages, we also need to create those as well. If you need help with that as well, just ask.

Reminder: Once you have created the JS page with the main script, you must submit it for review and wait for it to be approved. The same goes for after to make the addition to "MediaWiki:Common.js" (or "MediaWiki:Wikia.js" if you choose). - P.S.

When specifying the CSS pages, you do it the same way you would for importArticles (more detailed instructions).