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"*.
[...]
In your MediaWiki installation, open Parser.php in the includes subdirectory. Search for "function setHook". Above that text, you will find the documentation for setHook(), in a comment. 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.
-- Tim Starling