I have reviewed the protection extensions available. None really does
what my company needs, so I'm venturing into creating a new one, based
on ideas from the existing ones.
If it works this is how it will be used:
// 1. Use the MediaWiki features to create associate users to user groups.
//
// 2. Create named security definitions using a markup like this in a
protected page:
// <security-definition name="Official documentation">
// <deny action="read">guests</deny>
// <allow action="read">all</allow>
// <allow action="edit">sysops, writers</allow>
// </security-definition>
//
// 3. Create a template to ease the page security specification:
// Template:Official_documentation
// This is an official documentation page. The access is restricted.
// <security>Official documentation</security>
//
// 4. Use the security definition template in the pages that should be
protected by it:
// {{Official documentation}}