public function pagesInNamespace($ns = null) { $this->checkType('pagesInNamespace', 1, $ns, 'number'); return array((int) SiteStats::pagesInNs(intval($ns))); }
public static function pagesinnamespace($parser, $namespace = 0, $raw = null) { return self::formatRaw(SiteStats::pagesInNs(intval($namespace)), $raw); }
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; } }