tableName( 'categorylinks' ); $s= "SELECT 'Categories' as type, {$NScat} as namespace, cl_to as title, 1 as value, COUNT(*) as count FROM $categorylinks GROUP BY cl_to"; return $s; } function sortDescending() { return false; } function formatResult( $skin, $result ) { global $wgLang; $title = Title::makeTitle( NS_CATEGORY, $result->title ); $plink = $skin->makeLinkObj( $title, $title->getText() ); $nlinks = wfMsgExt( 'nmembers', array( 'parsemag', 'escape'), $wgLang->formatNum( $result->count ) ); return wfSpecialList($plink, $nlinks); } } /** * */ function wfSpecialCategories() { list( $limit, $offset ) = wfCheckLimits(); $cap = new CategoriesPage(); return $cap->doQuery( $offset, $limit ); } ?>