User:Brion.finlay/PathFunctions

This extension provides custom variables that allow you to specify the article name when using page specific MediaWiki variables for page names, namespaces, and latest revisions (for example, ), ), and ).

Example
gives Foo gives Help gives the latest revision id for Help:Foo

Configuration
Setting the variable $wgPathFunctionsUseNoPrefixHash to true allows the variables to be used without the preceeding hash symbol, and so appear more like the built in variables. 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: