Tim Starling schreef:
Jonathan Nowacki wrote:
Dear developers,
I wrote or edited the code attached below. I've also supplied working sample input and output files. I changed certain variables or names to "arbitrary" or "tag" in order to figure out how the thing works. Some variables like $wgParser or setHook can not be changed and appear to be predefined. That's fine, but when I hit "GO" after placing either one of these into the search box at mediawiki.org I get "*There is no page titled "setHook"*.
Generally, Parser.php is where you find documentation for $wgParser. Sometimes you will find documentation on a website, but it is often out of date and so not to be trusted.
Documentation on www.mediawiki.org is generally out of date, agreed. But there's documentation at http://svn.wikimedia.org/doc/classParser.html which is generated based on those comments and never more than 24 hours out of date.
Roan Kattouw (Catrope)