Followup r92396
authorSam Reed <reedy@users.mediawiki.org>
Sun, 17 Jul 2011 16:51:11 +0000 (16:51 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Sun, 17 Jul 2011 16:51:11 +0000 (16:51 +0000)
More modules documented, pretty much only action=query&list= to be done (ie links added where documentation pages exist already)

21 files changed:
includes/api/ApiComparePages.php
includes/api/ApiExpandTemplates.php
includes/api/ApiFeedContributions.php
includes/api/ApiFileRevert.php
includes/api/ApiOpenSearch.php
includes/api/ApiParse.php
includes/api/ApiPatrol.php
includes/api/ApiQueryAllmessages.php
includes/api/ApiQueryCategories.php
includes/api/ApiQueryCategoryInfo.php
includes/api/ApiQueryDuplicateFiles.php
includes/api/ApiQueryExternalLinks.php
includes/api/ApiQueryImageInfo.php
includes/api/ApiQueryImages.php
includes/api/ApiQueryInfo.php
includes/api/ApiQueryLangLinks.php
includes/api/ApiQueryLinks.php
includes/api/ApiQueryPageProps.php
includes/api/ApiQueryRevisions.php
includes/api/ApiQuerySiteinfo.php
includes/api/ApiQueryUserInfo.php

index cb77e7c..59f8555 100644 (file)
@@ -53,9 +53,9 @@ class ApiComparePages extends ApiBase {
                $vals['torevid'] = $rev2;
 
                $difftext = $de->getDiffBody();
-               
+
                if ( $difftext === false ) {
-                       $this->dieUsage( 'The diff cannot be retrieved. ' . 
+                       $this->dieUsage( 'The diff cannot be retrieved. ' .
                                'Maybe one or both revisions do not exist or you do not have permission to view them.', 'baddiff' );
                } else {
                        ApiResult::setContent( $vals, $difftext );
index 8b3ca15..d771ea1 100644 (file)
@@ -116,7 +116,7 @@ class ApiExpandTemplates extends ApiBase {
        }
 
        public function getHelpUrls() {
-               return 'http://www.mediawiki.org/wiki/API:Parsing_wikitext';
+               return 'http://www.mediawiki.org/wiki/API:Parsing_wikitext#expandtemplates';
        }
 
        public function getVersion() {
index a9846a5..ef6fecc 100644 (file)
@@ -201,10 +201,6 @@ class ApiFeedContributions extends ApiBase {
                );
        }
 
-       public function getHelpUrls() {
-               return '';
-       }
-
        public function getVersion() {
                return __CLASS__ . ': $Id$';
        }
index 6f2916a..5ff5051 100644 (file)
@@ -183,10 +183,6 @@ class ApiFileRevert extends ApiBase {
                );
        }
 
-       public function getHelpUrls() {
-               return '';
-       }
-
        public function getVersion() {
                return __CLASS__ . ': $Id$';
        }
index 9a09c27..ea69771 100644 (file)
@@ -126,7 +126,7 @@ class ApiOpenSearch extends ApiBase {
        }
 
        public function getHelpUrls() {
-               return '';
+               return 'http://www.mediawiki.org/wiki/API:Opensearch';
        }
 
        public function getVersion() {
index 60b1714..8311bd6 100644 (file)
@@ -586,7 +586,7 @@ class ApiParse extends ApiBase {
        }
 
        public function getHelpUrls() {
-               return '';
+               return 'http://www.mediawiki.org/wiki/API:Parsing_wikitext#parse';
        }
 
        public function getVersion() {
index c3dc582..3be8781 100644 (file)
@@ -111,7 +111,7 @@ class ApiPatrol extends ApiBase {
        }
 
        public function getHelpUrls() {
-               return '';
+               return 'http://www.mediawiki.org/wiki/API:Patrol';
        }
 
        public function getVersion() {
index 3515f73..106201e 100644 (file)
@@ -253,6 +253,10 @@ class ApiQueryAllmessages extends ApiQueryBase {
                );
        }
 
+       public function getHelpUrls() {
+               return 'http://www.mediawiki.org/wiki/API:Meta#allmessages_.2F_am';
+       }
+
        public function getVersion() {
                return __CLASS__ . ': $Id$';
        }
index f1440af..30ed7e8 100644 (file)
@@ -250,6 +250,10 @@ class ApiQueryCategories extends ApiQueryGeneratorBase {
                );
        }
 
+       public function getHelpUrls() {
+               return 'http://www.mediawiki.org/wiki/API:Properties#categories_.2F_cl';
+       }
+
        public function getVersion() {
                return __CLASS__ . ': $Id$';
        }
index 8ece9d6..8dae986 100644 (file)
@@ -119,6 +119,10 @@ class ApiQueryCategoryInfo extends ApiQueryBase {
                return 'api.php?action=query&prop=categoryinfo&titles=Category:Foo|Category:Bar';
        }
 
+       public function getHelpUrls() {
+               return 'http://www.mediawiki.org/wiki/API:Properties#categoryinfo_.2F_ci';
+       }
+
        public function getVersion() {
                return __CLASS__ . ': $Id$';
        }
index 52a7c7c..7fe8c33 100644 (file)
@@ -168,6 +168,10 @@ class ApiQueryDuplicateFiles extends ApiQueryGeneratorBase {
                );
        }
 
+       public function getHelpUrls() {
+               return 'http://www.mediawiki.org/wiki/API:Properties#duplicatefiles_.2F_df';
+       }
+
        public function getVersion() {
                return __CLASS__ . ': $Id$';
        }
index 85a1bcc..d4497e7 100644 (file)
@@ -150,6 +150,10 @@ class ApiQueryExternalLinks extends ApiQueryBase {
                );
        }
 
+       public function getHelpUrls() {
+               return 'http://www.mediawiki.org/wiki/API:Properties#extlinks_.2F_el';
+       }
+
        public function getVersion() {
                return __CLASS__ . ': $Id$';
        }
index a1fa7ac..3e435ba 100644 (file)
@@ -575,6 +575,10 @@ class ApiQueryImageInfo extends ApiQueryBase {
                );
        }
 
+       public function getHelpUrls() {
+               return 'http://www.mediawiki.org/wiki/API:Properties#imageinfo_.2F_ii';
+       }
+
        public function getVersion() {
                return __CLASS__ . ': $Id$';
        }
index 8516efb..23fe3dc 100644 (file)
@@ -185,6 +185,10 @@ class ApiQueryImages extends ApiQueryGeneratorBase {
                );
        }
 
+       public function getHelpUrls() {
+               return 'http://www.mediawiki.org/wiki/API:Properties#images_.2F_im';
+       }
+
        public function getVersion() {
                return __CLASS__ . ': $Id$';
        }
index 23ef920..818de5c 100644 (file)
@@ -728,6 +728,10 @@ class ApiQueryInfo extends ApiQueryBase {
                );
        }
 
+       public function getHelpUrls() {
+               return 'http://www.mediawiki.org/wiki/API:Properties#info_.2F_in';
+       }
+
        public function getVersion() {
                return __CLASS__ . ': $Id$';
        }
index 66e151e..21a5dfd 100644 (file)
@@ -166,6 +166,10 @@ class ApiQueryLangLinks extends ApiQueryBase {
                );
        }
 
+       public function getHelpUrls() {
+               return 'http://www.mediawiki.org/wiki/API:Properties#langlinks_.2F_ll';
+       }
+
        public function getVersion() {
                return __CLASS__ . ': $Id$';
        }
index cc70c1f..f7d86cd 100644 (file)
@@ -238,6 +238,14 @@ class ApiQueryLinks extends ApiQueryGeneratorBase {
                );
        }
 
+       public function getHelpUrls() {
+               if ( $this->prefix === 'pl' ) {
+                       return 'http://www.mediawiki.org/wiki/API:Properties#links_.2F_pl';
+               } else { // tl
+                       return 'http://www.mediawiki.org/wiki/API:Properties#templates_.2F_tl';
+               }
+       }
+
        public function getVersion() {
                return __CLASS__ . ': $Id$';
        }
index 087f8c8..3bc6a38 100644 (file)
@@ -148,6 +148,10 @@ class ApiQueryPageProps extends ApiQueryBase {
                );
        }
 
+       public function getHelpUrls() {
+               return 'http://www.mediawiki.org/wiki/API:Properties#pageprops_.2F_pp';
+       }
+
        public function getVersion() {
                return __CLASS__ . ': $Id$';
        }
index d59a6f1..296b545 100644 (file)
@@ -668,6 +668,10 @@ class ApiQueryRevisions extends ApiQueryBase {
                );
        }
 
+       public function getHelpUrls() {
+               return 'http://www.mediawiki.org/wiki/API:Properties#revisions_.2F_rv';
+       }
+
        public function getVersion() {
                return __CLASS__ . ': $Id$';
        }
index 2cd4825..20d1f65 100644 (file)
@@ -610,6 +610,10 @@ class ApiQuerySiteinfo extends ApiQueryBase {
                );
        }
 
+       public function getHelpUrls() {
+               return 'http://www.mediawiki.org/wiki/API:Meta#siteinfo_.2F_si';
+       }
+
        public function getVersion() {
                return __CLASS__ . ': $Id$';
        }
index 452a0f6..616d959 100644 (file)
@@ -238,6 +238,10 @@ class ApiQueryUserInfo extends ApiQueryBase {
                );
        }
 
+       public function getHelpUrls() {
+               return 'http://www.mediawiki.org/wiki/API:Meta#userinfo_.2F_ui';
+       }
+
        public function getVersion() {
                return __CLASS__ . ': $Id$';
        }