And if you're stuck with a version of MediaWiki prior to 1.10 - here's an alternative:
http://jimbojw.com/wiki/index.php?title=Doing_more_with_MediaWiki_parser_ext...
On 5/17/07, Rob Church robchur@gmail.com wrote:
On 17/05/07, Ittay Dror ittayd@qlusters.com wrote:
So, is there a way of better associating javascript with a page?
In newer versions of MediaWiki, use Parser::addHeadItems(); see associated members and functions in Parser, ParserOutput and OutputPage.
This is a recent addition from Tim Starling, which is an alternative implementation of extension output handlers.
Rob Church
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l