array( 'page' ), 'fields' => array( 'page_namespace AS namespace', 'page_title AS title', 'page_counter AS value'), 'conds' => array( 'page_is_redirect' => 0, 'page_namespace' => MWNamespace::getContentNamespaces() ) ); } /** * @param $skin Skin * @param $result * @return string */ function formatResult( $skin, $result ) { global $wgContLang; $title = Title::makeTitle( $result->namespace, $result->title ); $link = Linker::linkKnown( $title, htmlspecialchars( $wgContLang->convert( $title->getPrefixedText() ) ) ); $nv = $this->msg( 'nviews' )->numParams( $result->value )->escaped(); return $this->getLanguage()->specialList( $link, $nv ); } }