Extension:PageFunctions

<?php /*(($disable$))

Purpose
Provides a 'magic word' interface to retrieve useful page level information.

Features

 * Page Title change '#pagetitle'
 * Page Sub-title change '#pagesubtitle'
 * Page existence check '#pageexists'
 * Page scope variable set '#varset'
 * Page scope variable get '#varget'
 * Page scope variable set & capture '#varcapset'
 * Wikitext conditional 'show'
 * Hook based variable get and set
 * Client side page caching control

Usage

 * Where 'group' is the user's group membership check to perform
 * Where 'group' is the user's group membership check to perform
 * Where 'group' is the user's group membership check to perform
 * Where 'group' is the user's group membership check to perform
 * Where 'group' is the user's group membership check to perform
 * Where 'group' is the user's group membership check to perform
 * Where 'group' is the user's group membership check to perform
 * Where 'group' is the user's group membership check to perform
 * Where 'group' is the user's group membership check to perform
 * Where 'group' is the user's group membership check to perform

Of course, the same magic words can be used in the context of 'ParserCache2' i.e.
 * (($#pagetitle: new title name$))
 * (($#pagesubtitle: text to be added to the page's subtitle $))
 * (($#pageexists: 'article title' $))
 * (($#varset:variable name|value $))
 * (($#varget:variable name $))
 * (($#varaset:variable name|array key|array value$))
 * (($#varaget:variable name|array key$))
 * (($#varcapset:variable name|value$))
 * (($#cshow:group|text$))
 * (($noclientcaching$))

DEPENDANCIES

 * Extension:StubManager extension
 * Extension:ParserPhase2 extension (optional)

Installation
To install independantly from BizzWiki:
 * Download & Install Extension:StubManager extension
 * Download & Install Extension:ParserPhase2 extension
 * Dowload all this extension's files and place in the desired directory
 * Apply the following changes to 'LocalSettings.php' after the statements of Extension:StubManager:

HISTORY

 * Adjusted singleton invocation to accomodate more PHP versions
 * Added hook 'PageVarGet'
 * Added hook 'PageVarSet'
 * Added 'noclientcaching' magic word
 * Added 'noext' magic word