User:Kleptomik~mediawikiwiki/Sandbox

A small hack that changes the Metrics extension to generate Google Chart code (I use the Gchart4mw extension).

');			$theChart .= ' &#60/lines&#62 ';			$theChart = preg_replace('/ymax=500/', 'ymax='. ($highMark + ($highMark / 5)), $theChart );                       $dbr->freeResult($result);                        $wgOut->addHTML($theChart);                }        } } function createWhereIn($dbr, $field, $setArray) {        $whereSet = '';        foreach ($setArray as $key => $val) {                if (strlen($whereSet)>0) {                        $whereSet .= ',';                }        $whereSet .= $dbr->addQuotes($val);    }   return "{$field} IN ({$whereSet})"; } function displayStyle {        global $wgOut;            $style .= <<addHTML($style); }
 * 1) metricNames {
 * 1) metricSubmit {