<?php


function wikiplugin_tooltip_help() {
	return tra("Insert a link with a tooltip into a wiki page. Put the text for the link in between the tags").":<br />~np~{TOOLTIP(url=http://website.com, msg=tooltip text)}".tra("link text")."{TOOLTIP}~/np~";
}

function wikiplugin_tooltip($data, $params) {
        global $tikilib;
	extract ($params);

	if (!isset($url)) {
		return ("<b>missing parameter for url</b><br />");
	}
	if (!isset($msg)) {
		return ("<b>missing parameter for msg</b><br />");
	}
	if (!isset($target)) {

	}

	return  "<a href=\"$url\" onmouseover=\"return overlib('$msg');\" onmouseout=\"return nd();\" target=\"$target\">$data</a>";
}
?>
