From d5e46f96146d4d7312d0762ba21deed01f79993a Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Sun, 17 Jul 2011 16:51:11 +0000 Subject: [PATCH] Followup r92396 More modules documented, pretty much only action=query&list= to be done (ie links added where documentation pages exist already) --- includes/api/ApiComparePages.php | 4 ++-- includes/api/ApiExpandTemplates.php | 2 +- includes/api/ApiFeedContributions.php | 4 ---- includes/api/ApiFileRevert.php | 4 ---- includes/api/ApiOpenSearch.php | 2 +- includes/api/ApiParse.php | 2 +- includes/api/ApiPatrol.php | 2 +- includes/api/ApiQueryAllmessages.php | 4 ++++ includes/api/ApiQueryCategories.php | 4 ++++ includes/api/ApiQueryCategoryInfo.php | 4 ++++ includes/api/ApiQueryDuplicateFiles.php | 4 ++++ includes/api/ApiQueryExternalLinks.php | 4 ++++ includes/api/ApiQueryImageInfo.php | 4 ++++ includes/api/ApiQueryImages.php | 4 ++++ includes/api/ApiQueryInfo.php | 4 ++++ includes/api/ApiQueryLangLinks.php | 4 ++++ includes/api/ApiQueryLinks.php | 8 ++++++++ includes/api/ApiQueryPageProps.php | 4 ++++ includes/api/ApiQueryRevisions.php | 4 ++++ includes/api/ApiQuerySiteinfo.php | 4 ++++ 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 cb77e7c1ac..59f8555bf2 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 8b3ca154df..d771ea1135 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 a9846a5a9a..ef6feccfac 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 6f2916a88b..5ff5051296 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 9a09c274f4..ea697719ae 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 60b1714cab..8311bd67d5 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 c3dc582b49..3be87812cd 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 3515f73cb3..106201e007 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 f1440affbb..30ed7e8778 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 8ece9d6c5d..8dae986018 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 52a7c7c25d..7fe8c33f98 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 85a1bcc7d9..d4497e72a5 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 a1fa7ac3ff..3e435baa9f 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 8516efb64b..23fe3dc169 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 23ef920ee3..818de5cc70 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 66e151ef65..21a5dfd515 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 cc70c1f506..f7d86cd941 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 087f8c8cb5..3bc6a38e65 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 d59a6f17eb..296b545af5 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 2cd4825b1b..20d1f6562b 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 452a0f6882..616d9593f7 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$'; } -- 2.20.1