Just call $wgOut->parse() instead of doing a lot of things to call $wgParser->parse()