X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryImages.php;h=029d945d0bf07d019a53ff89617434c0fdc260ef;hb=239b0c772a3cf4dc2160e2c36c2813cd705adb50;hp=87b07782c071cde74859588463e4cc28df242c82;hpb=2664c2ab0168a0eec21db72532b3dc2c05468912;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryImages.php b/includes/api/ApiQueryImages.php index 87b07782c0..029d945d0b 100644 --- a/includes/api/ApiQueryImages.php +++ b/includes/api/ApiQueryImages.php @@ -146,7 +146,9 @@ class ApiQueryImages extends ApiQueryGeneratorBase { ApiBase::PARAM_MAX => ApiBase::LIMIT_BIG1, ApiBase::PARAM_MAX2 => ApiBase::LIMIT_BIG2 ), - 'continue' => null, + 'continue' => array( + ApiBase::PARAM_HELP_MSG => 'api-help-param-continue', + ), 'images' => array( ApiBase::PARAM_ISMULTI => true, ), @@ -160,35 +162,12 @@ class ApiQueryImages extends ApiQueryGeneratorBase { ); } - public function getParamDescription() { - return array( - 'limit' => 'How many images to return', - 'continue' => 'When more results are available, use this to continue', - 'images' => 'Only list these images. Useful for checking whether a ' . - 'certain page has a certain Image.', - 'dir' => 'The direction in which to list', - ); - } - - public function getResultProperties() { - return array( - '' => array( - 'ns' => 'namespace', - 'title' => 'string' - ) - ); - } - - public function getDescription() { - return 'Returns all images contained on the given page(s).'; - } - - public function getExamples() { + protected function getExamplesMessages() { return array( - 'api.php?action=query&prop=images&titles=Main%20Page' - => 'Get a list of images used in the [[Main Page]]', - 'api.php?action=query&generator=images&titles=Main%20Page&prop=info' - => 'Get information about all images used in the [[Main Page]]', + 'action=query&prop=images&titles=Main%20Page' + => 'apihelp-query+images-example-simple', + 'action=query&generator=images&titles=Main%20Page&prop=info' + => 'apihelp-query+images-example-generator', ); }