Extension:ParserPhase2

This extension enables performing a 'second pass' through a 'parser cached' page replacing for 'dynamic' variables. In a word, once a page is normally processed (i.e. 'first pass') Mediawiki 'fixes' all templates & variables in a 'parser cached' page. This extension enables substituting selected variables upon page view whilst still preserving the valuable job performed by the parser/parser cache.

Theory of operation
In the standard MW processing flow, when a page is viewed it is retrieved (either from the cache or 'raw' from the database) and sent to the 'output page' object. What this extension does is intercept the flow process through the 'OutputPageBeforeHTML' hook and:
 * Extracts the  tags
 * Looks for 'magic word' in the dictionary and retrieve the value if found
 * Looks for 'magic word' in the 'parser function' dictionary and execute the function if found

Features

 * Integrates with the standard Mediawiki Parser Cache
 * Provides a simple 'magic word' based interface to standard Mediawiki parser variables and functions
 * Nesting is *not* supported (e.g. (($magic word1| (($magic word2$)) $))

Usage

 * Where 'magic word' is a standard Mediawiki magic word e.g. CURRENTTIME, REVISIONID etc. Note that 'parser functions' can also be used.

Form Building
This extension is especially useful for building dynamic forms whilst preserving the usefulness of the parser cache functionality for the static part of the page. See Extension:BizzWiki for more details.

Dependancy

 * ExtensionClass extension

Installation
To install independantly from BizzWiki:
 * Download 'ExtensionClass' extension
 * Apply the following changes to 'LocalSettings.php'