\\[\\[([^|\\]]*)\\|\\s*)([^|\\]]*?)\\s*\\|:\\s*(.*?)\\s*:\\]\\]($SuffixPattern)/se",
"Keep(ToolTipLink(\$pagename, PSS('$1'), PSS('$2'), PSS('$3'), '$4'),'L')");
## [[target | + |: tooltip :]] title plus tooltip
Markup('[[|+|','<[[||',
"/(?>\\[\\[([^|\\]]*)\\|\\s*)(\\+)\\s*\\|:\\s*(.*?)\\s*:\\]\\]/se",
"Keep(ToolTipLink(\$pagename, PSS('$1'),
PageVar(MakePageName(\$pagename,PSS('$1')),'\$Title'), PSS('$3'),''),'L')");
function ToolTipLink($pagename, $tgt, $txt, $tt='', $suffix='') {
global $LinkToolTipFmt;
static $cnt = 50; $cnt++;
$tt = str_replace("\\\\",'\\\\(:nl:)',$tt);
$tt = MarkupToHTML($pagename, $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 "".$link.$ttdiv."
";
}
$HTMLStylesFmt['ttip'] = "
div.ttwrap { position:relative; display:inline; }
div.ttwrap span.ttterm { color:#006; border-bottom:1px dotted gray; }
div.ttwrap span.ttip { display:none; }
div.ttwrap:hover span.ttip {
display:block;
position:absolute;
left:1.5em;
top:1.3em;
min-width:120px;
border:1px solid #cc9;
-moz-border-radius:8px;
-webkit-border-radius: 8px;
padding:3px 5px;
background:#ffc;
color: #006;
font-size:75%;
line-height:1.3em;
/*text-align: center;*/
text-decoration:none;
}
* html div.ttwrap:hover { z-index:50; background:; } /* background:; for tricking IE*/
* html div.ttwrap:hover span.ttip { width:120px; } /* min-width for IE */
div.ttwrap:hover span.ttip div { display:inline; padding:0; margin:0; } /* for images wrapped in a div */
/* values for Opera */
@media all and (min-width: 120px) {
div.ttwrap:hover span.ttip { left:1.5em; top:0.6em; }
}
";