Hooks Definitions are confusing to me
The function sample now matches what it should be (a public static function, with the same name as the value added to the $wgHooks registry).
Thanks for the fix! I also tried that but did not really step through how all these templates relate to each other. :-)
I encountered this yesterday on another hook page and was quite confused by what the sample code was indicating: http://www.mediawiki.org/wiki/Manual:Hooks/ImageBeforeProduceHTML
It looks like all your hooks examples are done this way.
You mean the class name, which is present in the line "$wgHooks['ParserFirstCallInit'][] = ...", but not present in the function definition? Right, it should be at both places, or at none. Having it at both would blow up all the function definitions, so I have just taken it out.
Reverted, please discuss further at Template talk:MediaWikiHook.