(bug 16481) Special:Statistics does not explain what * means
authorSiebrand Mazeland <siebrand@users.mediawiki.org>
Fri, 28 Nov 2008 13:01:01 +0000 (13:01 +0000)
committerSiebrand Mazeland <siebrand@users.mediawiki.org>
Fri, 28 Nov 2008 13:01:01 +0000 (13:01 +0000)
* change asterisk to a tooltip image
* image is a 10px rendition of public domain image http://commons.wikimedia.org/wiki/Image:Bulbgraph.svg by RubySS

includes/specials/SpecialStatistics.php
skins/common/images/tooltip_icon.png [new file with mode: 0644]

index cd4a9b2..85ce51a 100644 (file)
@@ -183,8 +183,11 @@ function wfSpecialStatistics( $par = '' ) {
  * @return string table row in HTML format
  */
 function formatRow( $text, $number, $trExtraParams = '', $tooltip = '' ) {
+       global $wgStylePath;
+
        if( $tooltip ) {
-               $text = '<div title="' . wfMsg( $tooltip ) . '">' . $text . '<sup>*</sup></div>';
+               $tooltipText = wfMsg( $tooltip );
+               $text = '<div class="mw-tooltip-icon" title="' . $tooltipText . '">' . $text . '<sup><a class="mw-tooptip-icon" title="' . $tooltipText . '"><img alt="' . $tooltipText . '" src="' . $wgStylePath . '/common/images/tooltip_icon.png" width="10" height="12" border="0" /></a></sup></div>';
        }
 
        return "<tr{$trExtraParams}>
diff --git a/skins/common/images/tooltip_icon.png b/skins/common/images/tooltip_icon.png
new file mode 100644 (file)
index 0000000..6b3160e
Binary files /dev/null and b/skins/common/images/tooltip_icon.png differ