diff options
author | Sam Reed <reedy@users.mediawiki.org> | 2011-07-17 16:51:11 +0000 |
---|---|---|
committer | Sam Reed <reedy@users.mediawiki.org> | 2011-07-17 16:51:11 +0000 |
commit | d5e46f96146d4d7312d0762ba21deed01f79993a (patch) | |
tree | 01068e4d54b8d993687843cff6c1044a007f20f7 | |
parent | 6e84e9ccd980105c181fe7d61bee6190be6eca8d (diff) | |
download | mediawikicore-d5e46f96146d4d7312d0762ba21deed01f79993a.tar.gz mediawikicore-d5e46f96146d4d7312d0762ba21deed01f79993a.zip |
Followup r92396
More modules documented, pretty much only action=query&list= to be done (ie links added where documentation pages exist already)
Notes
Notes:
http://mediawiki.org/wiki/Special:Code/MediaWiki/92400
-rw-r--r-- | includes/api/ApiComparePages.php | 4 | ||||
-rw-r--r-- | includes/api/ApiExpandTemplates.php | 2 | ||||
-rw-r--r-- | includes/api/ApiFeedContributions.php | 4 | ||||
-rw-r--r-- | includes/api/ApiFileRevert.php | 4 | ||||
-rw-r--r-- | includes/api/ApiOpenSearch.php | 2 | ||||
-rw-r--r-- | includes/api/ApiParse.php | 2 | ||||
-rw-r--r-- | includes/api/ApiPatrol.php | 2 | ||||
-rw-r--r-- | includes/api/ApiQueryAllmessages.php | 4 | ||||
-rw-r--r-- | includes/api/ApiQueryCategories.php | 4 | ||||
-rw-r--r-- | includes/api/ApiQueryCategoryInfo.php | 4 | ||||
-rw-r--r-- | includes/api/ApiQueryDuplicateFiles.php | 4 | ||||
-rw-r--r-- | includes/api/ApiQueryExternalLinks.php | 4 | ||||
-rw-r--r-- | includes/api/ApiQueryImageInfo.php | 4 | ||||
-rw-r--r-- | includes/api/ApiQueryImages.php | 4 | ||||
-rw-r--r-- | includes/api/ApiQueryInfo.php | 4 | ||||
-rw-r--r-- | includes/api/ApiQueryLangLinks.php | 4 | ||||
-rw-r--r-- | includes/api/ApiQueryLinks.php | 8 | ||||
-rw-r--r-- | includes/api/ApiQueryPageProps.php | 4 | ||||
-rw-r--r-- | includes/api/ApiQueryRevisions.php | 4 | ||||
-rw-r--r-- | includes/api/ApiQuerySiteinfo.php | 4 | ||||
-rw-r--r-- | includes/api/ApiQueryUserInfo.php | 4 |
21 files changed, 66 insertions, 14 deletions
diff --git a/includes/api/ApiComparePages.php b/includes/api/ApiComparePages.php index cb77e7c1ac7c..59f8555bf2b2 100644 --- a/includes/api/ApiComparePages.php +++ b/includes/api/ApiComparePages.php @@ -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 ); diff --git a/includes/api/ApiExpandTemplates.php b/includes/api/ApiExpandTemplates.php index 8b3ca154dfa9..d771ea113579 100644 --- a/includes/api/ApiExpandTemplates.php +++ b/includes/api/ApiExpandTemplates.php @@ -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() { diff --git a/includes/api/ApiFeedContributions.php b/includes/api/ApiFeedContributions.php index a9846a5a9ab4..ef6feccfacdf 100644 --- a/includes/api/ApiFeedContributions.php +++ b/includes/api/ApiFeedContributions.php @@ -201,10 +201,6 @@ class ApiFeedContributions extends ApiBase { ); } - public function getHelpUrls() { - return ''; - } - public function getVersion() { return __CLASS__ . ': $Id$'; } diff --git a/includes/api/ApiFileRevert.php b/includes/api/ApiFileRevert.php index 6f2916a88b0d..5ff505129640 100644 --- a/includes/api/ApiFileRevert.php +++ b/includes/api/ApiFileRevert.php @@ -183,10 +183,6 @@ class ApiFileRevert extends ApiBase { ); } - public function getHelpUrls() { - return ''; - } - public function getVersion() { return __CLASS__ . ': $Id$'; } diff --git a/includes/api/ApiOpenSearch.php b/includes/api/ApiOpenSearch.php index 9a09c274f41c..ea697719ae3b 100644 --- a/includes/api/ApiOpenSearch.php +++ b/includes/api/ApiOpenSearch.php @@ -126,7 +126,7 @@ class ApiOpenSearch extends ApiBase { } public function getHelpUrls() { - return ''; + return 'http://www.mediawiki.org/wiki/API:Opensearch'; } public function getVersion() { diff --git a/includes/api/ApiParse.php b/includes/api/ApiParse.php index 60b1714cabac..8311bd67d535 100644 --- a/includes/api/ApiParse.php +++ b/includes/api/ApiParse.php @@ -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() { diff --git a/includes/api/ApiPatrol.php b/includes/api/ApiPatrol.php index c3dc582b4962..3be87812cdf6 100644 --- a/includes/api/ApiPatrol.php +++ b/includes/api/ApiPatrol.php @@ -111,7 +111,7 @@ class ApiPatrol extends ApiBase { } public function getHelpUrls() { - return ''; + return 'http://www.mediawiki.org/wiki/API:Patrol'; } public function getVersion() { diff --git a/includes/api/ApiQueryAllmessages.php b/includes/api/ApiQueryAllmessages.php index 3515f73cb35e..106201e007ec 100644 --- a/includes/api/ApiQueryAllmessages.php +++ b/includes/api/ApiQueryAllmessages.php @@ -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$'; } diff --git a/includes/api/ApiQueryCategories.php b/includes/api/ApiQueryCategories.php index f1440affbbb5..30ed7e87787f 100644 --- a/includes/api/ApiQueryCategories.php +++ b/includes/api/ApiQueryCategories.php @@ -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$'; } diff --git a/includes/api/ApiQueryCategoryInfo.php b/includes/api/ApiQueryCategoryInfo.php index 8ece9d6c5de2..8dae9860181b 100644 --- a/includes/api/ApiQueryCategoryInfo.php +++ b/includes/api/ApiQueryCategoryInfo.php @@ -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$'; } diff --git a/includes/api/ApiQueryDuplicateFiles.php b/includes/api/ApiQueryDuplicateFiles.php index 52a7c7c25d35..7fe8c33f986c 100644 --- a/includes/api/ApiQueryDuplicateFiles.php +++ b/includes/api/ApiQueryDuplicateFiles.php @@ -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$'; } diff --git a/includes/api/ApiQueryExternalLinks.php b/includes/api/ApiQueryExternalLinks.php index 85a1bcc7d9e8..d4497e72a56d 100644 --- a/includes/api/ApiQueryExternalLinks.php +++ b/includes/api/ApiQueryExternalLinks.php @@ -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$'; } diff --git a/includes/api/ApiQueryImageInfo.php b/includes/api/ApiQueryImageInfo.php index a1fa7ac3ffb5..3e435baa9f50 100644 --- a/includes/api/ApiQueryImageInfo.php +++ b/includes/api/ApiQueryImageInfo.php @@ -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$'; } diff --git a/includes/api/ApiQueryImages.php b/includes/api/ApiQueryImages.php index 8516efb64b54..23fe3dc16973 100644 --- a/includes/api/ApiQueryImages.php +++ b/includes/api/ApiQueryImages.php @@ -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$'; } diff --git a/includes/api/ApiQueryInfo.php b/includes/api/ApiQueryInfo.php index 23ef920ee3a1..818de5cc7065 100644 --- a/includes/api/ApiQueryInfo.php +++ b/includes/api/ApiQueryInfo.php @@ -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$'; } diff --git a/includes/api/ApiQueryLangLinks.php b/includes/api/ApiQueryLangLinks.php index 66e151ef6596..21a5dfd515c8 100644 --- a/includes/api/ApiQueryLangLinks.php +++ b/includes/api/ApiQueryLangLinks.php @@ -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$'; } diff --git a/includes/api/ApiQueryLinks.php b/includes/api/ApiQueryLinks.php index cc70c1f506b8..f7d86cd94102 100644 --- a/includes/api/ApiQueryLinks.php +++ b/includes/api/ApiQueryLinks.php @@ -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$'; } diff --git a/includes/api/ApiQueryPageProps.php b/includes/api/ApiQueryPageProps.php index 087f8c8cb592..3bc6a38e65d2 100644 --- a/includes/api/ApiQueryPageProps.php +++ b/includes/api/ApiQueryPageProps.php @@ -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$'; } diff --git a/includes/api/ApiQueryRevisions.php b/includes/api/ApiQueryRevisions.php index d59a6f17ebc1..296b545af5ac 100644 --- a/includes/api/ApiQueryRevisions.php +++ b/includes/api/ApiQueryRevisions.php @@ -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$'; } diff --git a/includes/api/ApiQuerySiteinfo.php b/includes/api/ApiQuerySiteinfo.php index 2cd4825b1b4b..20d1f6562b1c 100644 --- a/includes/api/ApiQuerySiteinfo.php +++ b/includes/api/ApiQuerySiteinfo.php @@ -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$'; } diff --git a/includes/api/ApiQueryUserInfo.php b/includes/api/ApiQueryUserInfo.php index 452a0f6882c3..616d9593f7a3 100644 --- a/includes/api/ApiQueryUserInfo.php +++ b/includes/api/ApiQueryUserInfo.php @@ -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$'; } |