User:Lerrymoe/monobook.js

$wgExtensionFunctions[] = "wfWikiScript";

function wfWikiScript { global $wgParser; $wgParser->setHook( "wikiscript", "renderWikiScript" ); }
 * 1) registers the extension with the WikiText parser

function renderWikiScript( $input, $argv ) { $output = ''; $output .= $input; $output .= ' '; return $output; } ?>
 * 1) The callback function for converting the input text to HTML output