\\[\\[([^|\\]]*)\\|\\s*)([^|\\]]*?)\\s*\\|:\\s*(.*?)\\s*:\\]\\]($SuffixPattern)/s", "ToolTipLinkTextMarkup"); function ToolTipLinkTextMarkup($m) { extract($GLOBALS['MarkupToHTML']); if ($m[3]=='+') $m[3] = PageVar(MakePageName($pagename, $m[1]), '$Title'); return ToolTipLink($pagename, $m[1], $m[2], $m[3], $m[4]); } function ToolTipLink($pagename, $tgt, $txt, $tt='', $suffix='') { global $LinkToolTipFmt, $WikiStyleCSS; $WikiStyleCSS[] = 'left|top'; static $cnt = 50; $cnt++; $tt = str_replace("\\\\",'\\\\(:nl:)',$tt); $tt = MarkupToHTML($pagename, $tt); preg_match("/style='(.*?)'/", $tt, $m); $tt = str_replace($m[0],'',$tt); $txt = MarkupToHTML($pagename, $txt); $txt = str_replace("
",'',$txt); $txt = str_replace("
",'',$txt); $txt = trim($txt); $ttdiv = (!$tt=='') ? "$tt" : ''; if ($tgt=='#') $link = "".$txt.""; else $link = MakeLink($pagename, $tgt, $txt, $suffix, ''); return Keep("