Extension:PathFunctions

This extension enables a reimplementation of builtin functions like PAGENAME, but with the possibillity to define the base path.

Example
gives Foo

Configuration
If setting the variable $wgPathFunctionsUseNoPrefixHash to true, then the functions are without the preceeding hash symbol, and more like the built in variables. That is for example.

Installation
Add this line to LocalSettings.php: require_once( "$IP/extensions/PathFunctions/PathFunctions.php" );

And copy the following to extensions/PathFunctions/PathFunctions.php and extensions/PathFunctions/PathFunctions.i18n.php: