in auto generated document, as it is on mw.org
* (bug 27182) API: Add filter by prefix for meta=allmessages
* (bug 27183) API: Add filter by customisation state for meta=allmessages
+* (bug 27340) API: Allow listing of "small" categories
=== Languages updated in 1.18 ===
$to = ( is_null( $params['to'] ) ? null : $this->titlePartToKey( $params['to'] ) );
$this->addWhereRange( 'cat_title', $dir, $from, $to );
+ $min = $params['minpage'];
+ $max = $params['maxpage'];
+ $this->addWhereRange( 'cat_pages', $dir, $min, $max );
+
if ( isset( $params['prefix'] ) ) {
$this->addWhere( 'cat_title' . $db->buildLike( $this->titlePartToKey( $params['prefix'] ), $db->anyString() ) );
}
'descending'
),
),
+ 'minpage' => array(
+ ApiBase::PARAM_DFLT => null,
+ ApiBase::PARAM_TYPE => 'integer'
+ ),
+ 'maxpage' => array(
+ ApiBase::PARAM_DFLT => null,
+ ApiBase::PARAM_TYPE => 'integer'
+ ),
'limit' => array(
ApiBase::PARAM_DFLT => 10,
ApiBase::PARAM_TYPE => 'limit',
'to' => 'The category to stop enumerating at',
'prefix' => 'Search for all category titles that begin with this value',
'dir' => 'Direction to sort in',
+ 'minpage' => 'Minimum number of category page members',
+ 'maxpage' => 'Maximum number of category page members',
'limit' => 'How many categories to return',
'prop' => array(
'Which properties to get',