private smartlink — function smartlink(mime, obj, node, env, p, html_file, page) Generate a cross-reference link.