Use $wgParser instead of constructing a new parser object. Constructing a new one...