Trunk ParserFunctions backported to MediaWiki 1.18