X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryPagesWithProp.php;h=6ffe0aee86457160aaa98436365fccd4e5a6ea6f;hb=4b8b0358ebca88abe8aa933becc5fd917d1799f4;hp=b6c852538874650d512ea30f7c3756418d7c7862;hpb=01da3da43d18b123fe3679a6af21f046a78180d5;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryPagesWithProp.php b/includes/api/ApiQueryPagesWithProp.php index b6c8525388..6ffe0aee86 100644 --- a/includes/api/ApiQueryPagesWithProp.php +++ b/includes/api/ApiQueryPagesWithProp.php @@ -140,7 +140,9 @@ class ApiQueryPagesWithProp extends ApiQueryGeneratorBase { 'value', ) ), - 'continue' => null, + 'continue' => array( + ApiBase::PARAM_HELP_MSG => 'api-help-param-continue', + ), 'limit' => array( ApiBase::PARAM_TYPE => 'limit', ApiBase::PARAM_DFLT => 10, @@ -158,31 +160,12 @@ class ApiQueryPagesWithProp extends ApiQueryGeneratorBase { ); } - public function getParamDescription() { - return array( - 'propname' => 'Page prop for which to enumerate pages', - 'prop' => array( - 'What pieces of information to include', - ' ids - Adds the page ID', - ' title - Adds the title and namespace ID of the page', - ' value - Adds the value of the page prop', - ), - 'dir' => 'In which direction to sort', - 'continue' => 'When more results are available, use this to continue', - 'limit' => 'The maximum number of pages to return', - ); - } - - public function getDescription() { - return 'List all pages using a given page prop.'; - } - - public function getExamples() { + protected function getExamplesMessages() { return array( - 'api.php?action=query&list=pageswithprop&pwppropname=displaytitle&pwpprop=ids|title|value' - => 'Get first 10 pages using {{DISPLAYTITLE:}}', - 'api.php?action=query&generator=pageswithprop&gpwppropname=notoc&prop=info' - => 'Get page info about first 10 pages using __NOTOC__', + 'action=query&list=pageswithprop&pwppropname=displaytitle&pwpprop=ids|title|value' + => 'apihelp-query+pageswithprop-example-simple', + 'action=query&generator=pageswithprop&gpwppropname=notoc&prop=info' + => 'apihelp-query+pageswithprop-example-generator', ); }