X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryIWBacklinks.php;h=a2af124b2df1e35f5a7b7e6294ff26abee6707e7;hb=4b8b0358ebca88abe8aa933becc5fd917d1799f4;hp=35b2b4092ba1163ba199f4c2223a9a0373c0f90e;hpb=c888520e9921225b92af101f21ae3462530e3e35;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryIWBacklinks.php b/includes/api/ApiQueryIWBacklinks.php index 35b2b4092b..a2af124b2d 100644 --- a/includes/api/ApiQueryIWBacklinks.php +++ b/includes/api/ApiQueryIWBacklinks.php @@ -169,7 +169,9 @@ class ApiQueryIWBacklinks extends ApiQueryGeneratorBase { return array( 'prefix' => null, 'title' => null, - 'continue' => null, + 'continue' => array( + ApiBase::PARAM_HELP_MSG => 'api-help-param-continue', + ), 'limit' => array( ApiBase::PARAM_DFLT => 10, ApiBase::PARAM_TYPE => 'limit', @@ -195,56 +197,12 @@ class ApiQueryIWBacklinks extends ApiQueryGeneratorBase { ); } - public function getParamDescription() { - return array( - 'prefix' => 'Prefix for the interwiki', - 'title' => "Interwiki link to search for. Must be used with {$this->getModulePrefix()}prefix", - 'continue' => 'When more results are available, use this to continue', - 'prop' => array( - 'Which properties to get', - ' iwprefix - Adds the prefix of the interwiki', - ' iwtitle - Adds the title of the interwiki', - ), - 'limit' => 'How many total pages to return', - 'dir' => 'The direction in which to list', - ); - } - - public function getResultProperties() { - return array( - '' => array( - 'pageid' => 'integer', - 'ns' => 'namespace', - 'title' => 'string', - 'redirect' => 'boolean' - ), - 'iwprefix' => array( - 'iwprefix' => 'string' - ), - 'iwtitle' => array( - 'iwtitle' => 'string' - ) - ); - } - - public function getDescription() { - return array( 'Find all pages that link to the given interwiki link.', - 'Can be used to find all links with a prefix, or', - 'all links to a title (with a given prefix).', - 'Using neither parameter is effectively "All IW Links".', - ); - } - - public function getPossibleErrors() { - return array_merge( parent::getPossibleErrors(), array( - array( 'missingparam', 'prefix' ), - ) ); - } - - public function getExamples() { + protected function getExamplesMessages() { return array( - 'api.php?action=query&list=iwbacklinks&iwbltitle=Test&iwblprefix=wikibooks', - 'api.php?action=query&generator=iwbacklinks&giwbltitle=Test&giwblprefix=wikibooks&prop=info' + 'action=query&list=iwbacklinks&iwbltitle=Test&iwblprefix=wikibooks' + => 'apihelp-query+iwbacklinks-example-simple', + 'action=query&generator=iwbacklinks&giwbltitle=Test&giwblprefix=wikibooks&prop=info' + => 'apihelp-query+iwbacklinks-example-generator', ); }