Global Lua Modules/ModularCSS


 * This documentation page is a WIP.

ModularCSS is a Lua module that can replace modular portions of a wiki's cluttered CSS code with an imported stylesheet generated with simple configuration pages.

Basic Install
The basic install comprises of prepping the module for use on your local wiki. Sub-modules will need to be imported later as the standalone module lacks any functionality.

Importing the base module
This module should be installed locally in a page titled Module:ModularCSS. This module page should be fully edit protected as to prevent unauthorized changes to the wiki's CSS. (See Help:Page protection for help protecting the page.)

The content of the page should comprise of the following:

Creating the rendering page
The generated CSS code will need to be rendered on a local wiki page. It is suggested that the host page be located at MediaWiki:Custom-ModularCSS-render (or another page in the MediaWiki namespace), as this will prevent local editors from modifying the page and compromising the wiki's CSS.

The selected host page should compromise of the following:

Importing the stylesheet
Now that the stylesheet has been generated at your selected rendering page, it will now need to be imported on your wiki's local MediaWiki:Common.css.

CSS Modules
CSS modules may be developed