Thread:Project:Support desk/I need html forms and Javascript in MediaWiki - Extension:CalcII doesn't work on newer MediaWiki Versions/reply (5)

Ah, sorry, i overlooked wfCalculator function, which is not correct, i think, please use:

And then add a function to the hook BeforePageDisplay to add your javascript file:

After this you can implement your ParserHook: '; $output .= ' '; $output .= ' ';

// Output for a parser hook isn't set via OutputPage, you just return the content (the tag will be replaced with this return) return $output; }

Something like this. Hope you can work with this :)