Snippets/Style pages based on categories

Description
Adds a CSS class to the tag for every category the current page belongs to. This can be useful to apply specific styles to all pages on the wiki that are included on a given category. Each class will have a " " prefix followed by the category name, with spaces and dots converted to underscores and special characters encoded.

You can later write styles like  to apply styles to pages belonging to that category.