예제 #1
0
 public function pagesInNamespace($ns = null)
 {
     $this->checkType('pagesInNamespace', 1, $ns, 'number');
     return array((int) SiteStats::pagesInNs(intval($ns)));
 }
예제 #2
0
 public static function pagesinnamespace($parser, $namespace = 0, $raw = null)
 {
     return self::formatRaw(SiteStats::pagesInNs(intval($namespace)), $raw);
 }
예제 #3
0
 static function pagesinnamespace($parser, $namespace = 0, $raw = null)
 {
     $count = SiteStats::pagesInNs(intval($namespace));
     if (self::isRaw($raw)) {
         global $wgContLang;
         return $wgContLang->formatNum($count);
     } else {
         return $count;
     }
 }