From 2fbcd8c2cf992e7ab7d00e381dd69fac9b246f45 Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Fri, 28 Nov 2008 13:01:01 +0000 Subject: [PATCH] (bug 16481) Special:Statistics does not explain what * means * 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 | 5 ++++- skins/common/images/tooltip_icon.png | Bin 0 -> 430 bytes 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 skins/common/images/tooltip_icon.png diff --git a/includes/specials/SpecialStatistics.php b/includes/specials/SpecialStatistics.php index cd4a9b2b84..85ce51aba7 100644 --- a/includes/specials/SpecialStatistics.php +++ b/includes/specials/SpecialStatistics.php @@ -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 = '
' . $text . '*
'; + $tooltipText = wfMsg( $tooltip ); + $text = '
' . $text . '' . $tooltipText . '
'; } return " diff --git a/skins/common/images/tooltip_icon.png b/skins/common/images/tooltip_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..6b3160ec057a3c6087db34696c908994188c5083 GIT binary patch literal 430 zcmV;f0a5;mP)Y<|