Thread:Talk:JQuery/How to call Jquery in an Extension?

 __FILE__,	'name' => 'Example Parser Function',	'description' => 'A simple example parser function extension',	'descriptionmsg' => 'exampleextension-desc',	'version' => 1, 	'author' => 'Me', 	'url' => 'https://www.mediawiki.org/wiki/Manual:Parser_functions', ); $wgHooks['ParserFirstCallInit'][] = 'ExampleExtensionSetupParserFunction'; $wgExtensionMessagesFiles['ExampleExtension'] = dirname( __FILE__ ). '/ExampleExtension.i18n.php'; function ExampleExtensionSetupParserFunction( &$parser ) { $parser->setFunctionHook( 'example', 'ExampleExtensionRenderParserFunction' ); return true; }

function ExampleExtensionRenderParserFunction( $parser, $param1 = , $param2 =  ) { jQuery( document ).ready( function( $ ) {}); $output = "param1 is $param1 and param2 is $param2"; return $output; }

This doesn't work.