From: umherirrender Date: Thu, 16 May 2013 07:08:18 +0000 (+0200) Subject: Add helpurls to some api modules X-Git-Tag: 1.31.0-rc.0~19645^2 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=5da19f4b3a6391d6fb0c3245ebfa341b9c69ae87;p=lhc%2Fweb%2Fwiklou.git Add helpurls to some api modules Change-Id: I41cc20ea5daf089e5fb26d1548d3b58cfe5f4d31 --- diff --git a/includes/api/ApiQuery.php b/includes/api/ApiQuery.php index 3bee4d331a..aafd5827ed 100644 --- a/includes/api/ApiQuery.php +++ b/includes/api/ApiQuery.php @@ -735,6 +735,7 @@ class ApiQuery extends ApiBase { public function getHelpUrls() { return array( + 'https://www.mediawiki.org/wiki/API:Query', 'https://www.mediawiki.org/wiki/API:Meta', 'https://www.mediawiki.org/wiki/API:Properties', 'https://www.mediawiki.org/wiki/API:Lists', diff --git a/includes/api/ApiQueryFilearchive.php b/includes/api/ApiQueryFilearchive.php index 408c7c2854..f53cd38673 100644 --- a/includes/api/ApiQueryFilearchive.php +++ b/includes/api/ApiQueryFilearchive.php @@ -373,4 +373,8 @@ class ApiQueryFilearchive extends ApiQueryBase { ), ); } + + public function getHelpUrls() { + return 'https://www.mediawiki.org/wiki/API:Filearchive'; + } } diff --git a/includes/api/ApiQueryIWBacklinks.php b/includes/api/ApiQueryIWBacklinks.php index b47d31f266..ebae3e768c 100644 --- a/includes/api/ApiQueryIWBacklinks.php +++ b/includes/api/ApiQueryIWBacklinks.php @@ -239,4 +239,8 @@ class ApiQueryIWBacklinks extends ApiQueryGeneratorBase { 'api.php?action=query&generator=iwbacklinks&giwbltitle=Test&giwblprefix=wikibooks&prop=info' ); } + + public function getHelpUrls() { + return 'https://www.mediawiki.org/wiki/API:Iwbacklinks'; + } } diff --git a/includes/api/ApiQueryIWLinks.php b/includes/api/ApiQueryIWLinks.php index 7b13257572..be53931172 100644 --- a/includes/api/ApiQueryIWLinks.php +++ b/includes/api/ApiQueryIWLinks.php @@ -193,4 +193,8 @@ class ApiQueryIWLinks extends ApiQueryBase { 'api.php?action=query&prop=iwlinks&titles=Main%20Page' => 'Get interwiki links from the [[Main Page]]', ); } + + public function getHelpUrls() { + return 'https://www.mediawiki.org/wiki/API:Iwlinks'; + } } diff --git a/includes/api/ApiQueryLangBacklinks.php b/includes/api/ApiQueryLangBacklinks.php index ce03e58ecb..5bd451b6c8 100644 --- a/includes/api/ApiQueryLangBacklinks.php +++ b/includes/api/ApiQueryLangBacklinks.php @@ -195,7 +195,7 @@ class ApiQueryLangBacklinks extends ApiQueryGeneratorBase { 'prop' => array( 'Which properties to get', ' lllang - Adds the language code of the language link', - ' lltitle - Adds the title of the language ink', + ' lltitle - Adds the title of the language link', ), 'limit' => 'How many total pages to return', 'dir' => 'The direction in which to list', @@ -240,4 +240,8 @@ class ApiQueryLangBacklinks extends ApiQueryGeneratorBase { 'api.php?action=query&generator=langbacklinks&glbltitle=Test&glbllang=fr&prop=info' ); } + + public function getHelpUrls() { + return 'https://www.mediawiki.org/wiki/API:Langbacklinks'; + } } diff --git a/includes/api/ApiQueryQueryPage.php b/includes/api/ApiQueryQueryPage.php index 9b2bcb35a9..c15da1a5ba 100644 --- a/includes/api/ApiQueryQueryPage.php +++ b/includes/api/ApiQueryQueryPage.php @@ -222,4 +222,8 @@ class ApiQueryQueryPage extends ApiQueryGeneratorBase { 'api.php?action=query&list=querypage&qppage=Ancientpages' ); } + + public function getHelpUrls() { + return 'https://www.mediawiki.org/wiki/API:Querypage'; + } } diff --git a/includes/api/ApiQueryRandom.php b/includes/api/ApiQueryRandom.php index ae3bb89320..2754bdae73 100644 --- a/includes/api/ApiQueryRandom.php +++ b/includes/api/ApiQueryRandom.php @@ -185,4 +185,8 @@ class ApiQueryRandom extends ApiQueryGeneratorBase { public function getExamples() { return 'api.php?action=query&list=random&rnnamespace=0&rnlimit=2'; } + + public function getHelpUrls() { + return 'https://www.mediawiki.org/wiki/API:Random'; + } } diff --git a/includes/api/ApiQueryTags.php b/includes/api/ApiQueryTags.php index 22480c62b7..732df9a4ed 100644 --- a/includes/api/ApiQueryTags.php +++ b/includes/api/ApiQueryTags.php @@ -194,4 +194,8 @@ class ApiQueryTags extends ApiQueryBase { 'api.php?action=query&list=tags&tgprop=displayname|description|hitcount' ); } + + public function getHelpUrls() { + return 'https://www.mediawiki.org/wiki/API:Tags'; + } } diff --git a/includes/api/ApiQueryWatchlistRaw.php b/includes/api/ApiQueryWatchlistRaw.php index 2cb4d9ebca..ea4e724a0b 100644 --- a/includes/api/ApiQueryWatchlistRaw.php +++ b/includes/api/ApiQueryWatchlistRaw.php @@ -222,4 +222,8 @@ class ApiQueryWatchlistRaw extends ApiQueryGeneratorBase { 'api.php?action=query&generator=watchlistraw&gwrshow=changed&prop=revisions', ); } + + public function getHelpUrls() { + return 'https://www.mediawiki.org/wiki/API:Watchlistraw'; + } }