Extension:RegexNamespaceContext

Purpose
Supports regex based 'edit form' text preloading and 'header'/'footer' wikitext pages insertion.

Features

 * Can load 'preload edit form' text based on a per-namespace regex 'context'
 * Can add 'headers' and 'footers' text pages based on a per-namespace regex 'context'
 * Creates a hook 'ContextPageParsingComplete'

Usage
On a per-namespace basis (only the ones required), edit the page 'Context' and place+customize the following:

Preload Patterns

 * Preloads ':preloadPage' page upon '*.log' page name
 * add other patterns below

...more patterns here...

Preload Generation
Do not modify the following:

Header Patterns

 * Header page for all pages in namespace following the '*.log' pattern
 * add other patterns below

...more patterns here...

Header Generation
Do not modify the following:

Footer Patterns

 * Footer page for all pages in namespace following the '*.log' pattern
 * add other patterns below

...more patterns here...

Footer Generation
Do not modify the following:

Dependancies

 * StubManager extension
 * RegexTools extension
 * PageFunctions extension
 * ParserCacheControl extension

Installation
To install independantly from BizzWiki:
 * Download Extension:StubManager extension & put in 'extensions' directory
 * Download Extension:ParserCacheControl extension & put in 'extensions' directory
 * Download Extension:PageFunctions extension & put in 'extensions' directory
 * Download Extension:RegexTools extension & put in 'extensions' directory
 * Apply the following changes to 'LocalSettings.php'

History

 * Used another parser instance instead of the global wgParser one: better integration with other extensions
 * Fixed major bug: needed to 'clone' the wgParser in order to keep all the hooks/parser functions etc.
 * Fixed 'skin' related bug: 'ParserAfterTidy' gets called during MediaWiki skin's string processing