Extension:SecureHTML

Purpose
This extension enables the usage of 'html' tags (functionality which is controlled through the '$wgRawHtml' global variable) within protected pages. Furthermore, the extension allows for the controlled inclusion of templates.

Features
as if they could.
 * Cascading: if the base page is allowed to use 'html' tags, then all included pages will be processed
 * Namespace exemption: configured namespaces are exempted from 'protection' requirement
 * Parser cache friendliness:
 * The extension must be enabled to continue the support of the inserted content
 * Support for the parser function

Motivation for the parser function
It is sometimes useful to include, in a secure fashion, a template containing 'raw html' in another page. This enables, for example, the construction of gadgets.

Through the added functionality of parameterization using the, the said templates can be customized on a per-page basis without resorting to convoluted escape patterns (e.g.  ) which renders page viewing difficult to humans.

tag

 * Use the standard tags (see Manual:$wgRawHtml) within a protected page. One can either protect the page before or after the inclusion of the said tag(s).

parser function
Use:  where:
 * is the page name of the article to include
 * are of the form:

Dependancy

 * StubManager extension

History
protected in order to use 'html' tags
 * added namespace exemption functionality i.e. namespaces where article do not need to be
 * use  to turn off
 * use  to add namespaces
 * enhanced with functionality to 'add' content to the document's 'head' section
 * Removed dependency on ExtensionClass
 * Enabled for 'StubManager'
 * Added 'addExemptNamespaces' function

1.1.0

 * Added, by default, NS_MEDIAWIKI namespace to the exemptNamespaces

2.0.0

 * Addition of the parser function

Todo

 * Fix for allowing more customization of 'exempt' namespaces even when using StubManager