Add helpurls to some api modules
authorumherirrender <umherirrender_de.wp@web.de>
Thu, 16 May 2013 07:08:18 +0000 (09:08 +0200)
committerumherirrender <umherirrender_de.wp@web.de>
Thu, 16 May 2013 07:08:18 +0000 (09:08 +0200)
Change-Id: I41cc20ea5daf089e5fb26d1548d3b58cfe5f4d31

includes/api/ApiQuery.php
includes/api/ApiQueryFilearchive.php
includes/api/ApiQueryIWBacklinks.php
includes/api/ApiQueryIWLinks.php
includes/api/ApiQueryLangBacklinks.php
includes/api/ApiQueryQueryPage.php
includes/api/ApiQueryRandom.php
includes/api/ApiQueryTags.php
includes/api/ApiQueryWatchlistRaw.php

index 3bee4d3..aafd582 100644 (file)
@@ -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',
index 408c7c2..f53cd38 100644 (file)
@@ -373,4 +373,8 @@ class ApiQueryFilearchive extends ApiQueryBase {
                        ),
                );
        }
+
+       public function getHelpUrls() {
+               return 'https://www.mediawiki.org/wiki/API:Filearchive';
+       }
 }
index b47d31f..ebae3e7 100644 (file)
@@ -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';
+       }
 }
index 7b13257..be53931 100644 (file)
@@ -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';
+       }
 }
index ce03e58..5bd451b 100644 (file)
@@ -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';
+       }
 }
index 9b2bcb3..c15da1a 100644 (file)
@@ -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';
+       }
 }
index ae3bb89..2754bda 100644 (file)
@@ -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';
+       }
 }
index 22480c6..732df9a 100644 (file)
@@ -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';
+       }
 }
index 2cb4d9e..ea4e724 100644 (file)
@@ -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';
+       }
 }