/** * Callback function for converting resource to HTML output */ function renderPlaceData($input, $argv, $parser) { $place = new Place($parser->getTitle()->getText()); return $place->renderData($input, $parser); }