From 719d7a2f030994213de3eadde5e20fe54c8159cf Mon Sep 17 00:00:00 2001 From: addshore Date: Sun, 9 Mar 2014 21:22:47 +0100 Subject: [PATCH] Add final period to API module descriptions Change-Id: Icae68c1ab1fd0006e00a3a9a56ae8f831d3d0d45 --- includes/api/ApiBlock.php | 2 +- includes/api/ApiComparePages.php | 4 ++-- includes/api/ApiCreateAccount.php | 2 +- includes/api/ApiDelete.php | 2 +- includes/api/ApiDisabled.php | 2 +- includes/api/ApiEditPage.php | 2 +- includes/api/ApiEmailUser.php | 2 +- includes/api/ApiExpandTemplates.php | 2 +- includes/api/ApiFeedContributions.php | 2 +- includes/api/ApiFeedWatchlist.php | 2 +- includes/api/ApiFileRevert.php | 2 +- includes/api/ApiHelp.php | 2 +- includes/api/ApiImageRotate.php | 2 +- includes/api/ApiImport.php | 2 +- includes/api/ApiLogin.php | 2 +- includes/api/ApiLogout.php | 2 +- includes/api/ApiMain.php | 6 +++--- includes/api/ApiMove.php | 2 +- includes/api/ApiOpenSearch.php | 2 +- includes/api/ApiOptions.php | 4 ++-- includes/api/ApiParamInfo.php | 2 +- includes/api/ApiParse.php | 6 +++--- includes/api/ApiPatrol.php | 2 +- includes/api/ApiProtect.php | 2 +- includes/api/ApiPurge.php | 2 +- includes/api/ApiQuery.php | 2 +- includes/api/ApiQueryAllCategories.php | 2 +- includes/api/ApiQueryAllImages.php | 2 +- includes/api/ApiQueryAllMessages.php | 2 +- includes/api/ApiQueryAllPages.php | 2 +- includes/api/ApiQueryAllUsers.php | 2 +- includes/api/ApiQueryBacklinks.php | 8 ++++---- includes/api/ApiQueryBlocks.php | 2 +- includes/api/ApiQueryCategories.php | 2 +- includes/api/ApiQueryCategoryInfo.php | 2 +- includes/api/ApiQueryCategoryMembers.php | 2 +- includes/api/ApiQueryContributors.php | 2 +- includes/api/ApiQueryDeletedrevs.php | 8 ++++---- includes/api/ApiQueryDisabled.php | 2 +- includes/api/ApiQueryDuplicateFiles.php | 2 +- includes/api/ApiQueryExtLinksUsage.php | 2 +- includes/api/ApiQueryExternalLinks.php | 2 +- includes/api/ApiQueryFileRepoInfo.php | 2 +- includes/api/ApiQueryFilearchive.php | 2 +- includes/api/ApiQueryIWBacklinks.php | 2 +- includes/api/ApiQueryIWLinks.php | 2 +- includes/api/ApiQueryImageInfo.php | 2 +- includes/api/ApiQueryImages.php | 2 +- includes/api/ApiQueryLangBacklinks.php | 2 +- includes/api/ApiQueryLangLinks.php | 2 +- includes/api/ApiQueryLinks.php | 2 +- includes/api/ApiQueryLogEvents.php | 2 +- includes/api/ApiQueryPagePropNames.php | 2 +- includes/api/ApiQueryPageProps.php | 2 +- includes/api/ApiQueryPagesWithProp.php | 2 +- includes/api/ApiQueryProtectedTitles.php | 2 +- includes/api/ApiQueryQueryPage.php | 2 +- includes/api/ApiQueryRandom.php | 6 +++--- includes/api/ApiQueryRecentChanges.php | 2 +- includes/api/ApiQueryRedirects.php | 2 +- includes/api/ApiQueryRevisions.php | 10 +++++----- includes/api/ApiQuerySearch.php | 2 +- includes/api/ApiQuerySiteinfo.php | 2 +- includes/api/ApiQueryStashImageInfo.php | 2 +- includes/api/ApiQueryTags.php | 2 +- includes/api/ApiQueryUserContributions.php | 2 +- includes/api/ApiQueryUserInfo.php | 2 +- includes/api/ApiQueryUsers.php | 2 +- includes/api/ApiQueryWatchlist.php | 2 +- includes/api/ApiQueryWatchlistRaw.php | 2 +- includes/api/ApiRevisionDelete.php | 2 +- includes/api/ApiRollback.php | 2 +- includes/api/ApiRsd.php | 2 +- includes/api/ApiRunJobs.php | 2 +- includes/api/ApiSetNotificationTimestamp.php | 2 +- includes/api/ApiTokens.php | 2 +- includes/api/ApiUnblock.php | 2 +- includes/api/ApiUndelete.php | 2 +- includes/api/ApiUpload.php | 2 +- includes/api/ApiUserrights.php | 2 +- includes/api/ApiWatch.php | 2 +- 81 files changed, 99 insertions(+), 99 deletions(-) diff --git a/includes/api/ApiBlock.php b/includes/api/ApiBlock.php index 332fa9ea4a..364300e14e 100644 --- a/includes/api/ApiBlock.php +++ b/includes/api/ApiBlock.php @@ -222,7 +222,7 @@ class ApiBlock extends ApiBase { } public function getDescription() { - return 'Block a user'; + return 'Block a user.'; } public function getPossibleErrors() { diff --git a/includes/api/ApiComparePages.php b/includes/api/ApiComparePages.php index 237e8c8758..c1bbea7c46 100644 --- a/includes/api/ApiComparePages.php +++ b/includes/api/ApiComparePages.php @@ -157,8 +157,8 @@ class ApiComparePages extends ApiBase { public function getDescription() { return array( - 'Get the difference between 2 pages', - 'You must pass a revision number or a page title or a page ID id for each part (1 and 2)' + 'Get the difference between 2 pages.', + 'You must pass a revision number or a page title or a page ID id for each part (1 and 2).' ); } diff --git a/includes/api/ApiCreateAccount.php b/includes/api/ApiCreateAccount.php index c550fceca3..be8286c0bf 100644 --- a/includes/api/ApiCreateAccount.php +++ b/includes/api/ApiCreateAccount.php @@ -167,7 +167,7 @@ class ApiCreateAccount extends ApiBase { } public function getDescription() { - return 'Create a new user account'; + return 'Create a new user account.'; } public function mustBePosted() { diff --git a/includes/api/ApiDelete.php b/includes/api/ApiDelete.php index c09cad322b..acc2eb83cb 100644 --- a/includes/api/ApiDelete.php +++ b/includes/api/ApiDelete.php @@ -240,7 +240,7 @@ class ApiDelete extends ApiBase { } public function getDescription() { - return 'Delete a page'; + return 'Delete a page.'; } public function getPossibleErrors() { diff --git a/includes/api/ApiDisabled.php b/includes/api/ApiDisabled.php index e5ef3b7e0e..6ea5d2020c 100644 --- a/includes/api/ApiDisabled.php +++ b/includes/api/ApiDisabled.php @@ -53,7 +53,7 @@ class ApiDisabled extends ApiBase { } public function getDescription() { - return 'This module has been disabled'; + return 'This module has been disabled.'; } public function getExamples() { diff --git a/includes/api/ApiEditPage.php b/includes/api/ApiEditPage.php index 695a76f82f..73eebcad08 100644 --- a/includes/api/ApiEditPage.php +++ b/includes/api/ApiEditPage.php @@ -492,7 +492,7 @@ class ApiEditPage extends ApiBase { } public function getDescription() { - return 'Create and edit pages'; + return 'Create and edit pages.'; } public function getPossibleErrors() { diff --git a/includes/api/ApiEmailUser.php b/includes/api/ApiEmailUser.php index 5125ce3033..29f7e056e9 100644 --- a/includes/api/ApiEmailUser.php +++ b/includes/api/ApiEmailUser.php @@ -130,7 +130,7 @@ class ApiEmailUser extends ApiBase { } public function getDescription() { - return 'Email a user'; + return 'Email a user.'; } public function getPossibleErrors() { diff --git a/includes/api/ApiExpandTemplates.php b/includes/api/ApiExpandTemplates.php index d5c789c35f..28ed5e48f7 100644 --- a/includes/api/ApiExpandTemplates.php +++ b/includes/api/ApiExpandTemplates.php @@ -108,7 +108,7 @@ class ApiExpandTemplates extends ApiBase { } public function getDescription() { - return 'Expands all templates in wikitext'; + return 'Expands all templates in wikitext.'; } public function getPossibleErrors() { diff --git a/includes/api/ApiFeedContributions.php b/includes/api/ApiFeedContributions.php index 2cdc87585d..417340291b 100644 --- a/includes/api/ApiFeedContributions.php +++ b/includes/api/ApiFeedContributions.php @@ -208,7 +208,7 @@ class ApiFeedContributions extends ApiBase { } public function getDescription() { - return 'Returns a user contributions feed'; + return 'Returns a user contributions feed.'; } public function getPossibleErrors() { diff --git a/includes/api/ApiFeedWatchlist.php b/includes/api/ApiFeedWatchlist.php index 84c1fae875..4770365c76 100644 --- a/includes/api/ApiFeedWatchlist.php +++ b/includes/api/ApiFeedWatchlist.php @@ -266,7 +266,7 @@ class ApiFeedWatchlist extends ApiBase { } public function getDescription() { - return 'Returns a watchlist feed'; + return 'Returns a watchlist feed.'; } public function getPossibleErrors() { diff --git a/includes/api/ApiFileRevert.php b/includes/api/ApiFileRevert.php index a3fa5f9c87..1941fbd7c5 100644 --- a/includes/api/ApiFileRevert.php +++ b/includes/api/ApiFileRevert.php @@ -167,7 +167,7 @@ class ApiFileRevert extends ApiBase { public function getDescription() { return array( - 'Revert a file to an old version' + 'Revert a file to an old version.' ); } diff --git a/includes/api/ApiHelp.php b/includes/api/ApiHelp.php index 5b1f29cbc7..e584d0dff4 100644 --- a/includes/api/ApiHelp.php +++ b/includes/api/ApiHelp.php @@ -152,7 +152,7 @@ class ApiHelp extends ApiBase { } public function getDescription() { - return 'Display this help screen. Or the help screen for the specified module'; + return 'Display this help screen. Or the help screen for the specified module.'; } public function getExamples() { diff --git a/includes/api/ApiImageRotate.php b/includes/api/ApiImageRotate.php index 5d2ee6f42f..b8e16ab724 100644 --- a/includes/api/ApiImageRotate.php +++ b/includes/api/ApiImageRotate.php @@ -203,7 +203,7 @@ class ApiImageRotate extends ApiBase { } public function getDescription() { - return 'Rotate one or more images'; + return 'Rotate one or more images.'; } public function needsToken() { diff --git a/includes/api/ApiImport.php b/includes/api/ApiImport.php index 99307fdfeb..295f16ec53 100644 --- a/includes/api/ApiImport.php +++ b/includes/api/ApiImport.php @@ -151,7 +151,7 @@ class ApiImport extends ApiBase { return array( 'Import a page from another wiki, or an XML file.', 'Note that the HTTP POST must be done as a file upload (i.e. using multipart/form-data) when', - 'sending a file for the "xml" parameter' + 'sending a file for the "xml" parameter.' ); } diff --git a/includes/api/ApiLogin.php b/includes/api/ApiLogin.php index fe3143ea89..cba2134568 100644 --- a/includes/api/ApiLogin.php +++ b/includes/api/ApiLogin.php @@ -261,7 +261,7 @@ class ApiLogin extends ApiBase { 'In the event of a successful log-in, a cookie will be attached to your session.', 'In the event of a failed log-in, you will not be able to attempt another log-in', 'through this method for 5 seconds. This is to prevent password guessing by', - 'automated password crackers' + 'automated password crackers.' ); } diff --git a/includes/api/ApiLogout.php b/includes/api/ApiLogout.php index 2ba92a63ba..c8b388205a 100644 --- a/includes/api/ApiLogout.php +++ b/includes/api/ApiLogout.php @@ -59,7 +59,7 @@ class ApiLogout extends ApiBase { } public function getDescription() { - return 'Log out and clear session data'; + return 'Log out and clear session data.'; } public function getExamples() { diff --git a/includes/api/ApiMain.php b/includes/api/ApiMain.php index 37273d90f0..1a11b527a0 100644 --- a/includes/api/ApiMain.php +++ b/includes/api/ApiMain.php @@ -1111,14 +1111,14 @@ class ApiMain extends ApiBase { '', 'Status: All features shown on this page should be working, but the API', ' is still in active development, and may change at any time.', - ' Make sure to monitor our mailing list for any updates', + ' Make sure to monitor our mailing list for any updates.', '', 'Erroneous requests: When erroneous requests are sent to the API, a HTTP header will be sent', ' with the key "MediaWiki-API-Error" and then both the value of the', - ' header and the error code sent back will be set to the same value', + ' header and the error code sent back will be set to the same value.', '', ' In the case of an invalid action being passed, these will have a value', - ' of "unknown_action"', + ' of "unknown_action".', '', ' For more information see https://www.mediawiki.org' . '/wiki/API:Errors_and_warnings', diff --git a/includes/api/ApiMove.php b/includes/api/ApiMove.php index 20ac48a8a2..10b655fb45 100644 --- a/includes/api/ApiMove.php +++ b/includes/api/ApiMove.php @@ -272,7 +272,7 @@ class ApiMove extends ApiBase { } public function getDescription() { - return 'Move a page'; + return 'Move a page.'; } public function getPossibleErrors() { diff --git a/includes/api/ApiOpenSearch.php b/includes/api/ApiOpenSearch.php index 4b8578bd59..f2bf75425b 100644 --- a/includes/api/ApiOpenSearch.php +++ b/includes/api/ApiOpenSearch.php @@ -125,7 +125,7 @@ class ApiOpenSearch extends ApiBase { } public function getDescription() { - return 'Search the wiki using the OpenSearch protocol'; + return 'Search the wiki using the OpenSearch protocol.'; } public function getExamples() { diff --git a/includes/api/ApiOptions.php b/includes/api/ApiOptions.php index 4ff845a0bd..86d051a683 100644 --- a/includes/api/ApiOptions.php +++ b/includes/api/ApiOptions.php @@ -187,10 +187,10 @@ class ApiOptions extends ApiBase { public function getDescription() { return array( - 'Change preferences of the current user', + 'Change preferences of the current user.', 'Only options which are registered in core or in one of installed extensions,', 'or as options with keys prefixed with \'userjs-\' (intended to be used by user', - 'scripts), can be set' + 'scripts), can be set.' ); } diff --git a/includes/api/ApiParamInfo.php b/includes/api/ApiParamInfo.php index 2b4710aa3b..5092af0132 100644 --- a/includes/api/ApiParamInfo.php +++ b/includes/api/ApiParamInfo.php @@ -349,7 +349,7 @@ class ApiParamInfo extends ApiBase { } public function getDescription() { - return 'Obtain information about certain API parameters and errors'; + return 'Obtain information about certain API parameters and errors.'; } public function getExamples() { diff --git a/includes/api/ApiParse.php b/includes/api/ApiParse.php index 4c1ddc2abc..ce52565d26 100644 --- a/includes/api/ApiParse.php +++ b/includes/api/ApiParse.php @@ -818,13 +818,13 @@ class ApiParse extends ApiBase { $p = $this->getModulePrefix(); return array( - 'Parses content and returns parser output', + 'Parses content and returns parser output.', 'See the various prop-Modules of action=query to get information from the current' . - 'version of a page', + 'version of a page.', 'There are several ways to specify the text to parse:', "1) Specify a page or revision, using {$p}page, {$p}pageid, or {$p}oldid.", "2) Specify content explicitly, using {$p}text, {$p}title, and {$p}contentmodel.", - "3) Specify only a summary to parse. {$p}prop should be given an empty value", + "3) Specify only a summary to parse. {$p}prop should be given an empty value.", ); } diff --git a/includes/api/ApiPatrol.php b/includes/api/ApiPatrol.php index 46bd94e29d..00297ec27c 100644 --- a/includes/api/ApiPatrol.php +++ b/includes/api/ApiPatrol.php @@ -109,7 +109,7 @@ class ApiPatrol extends ApiBase { } public function getDescription() { - return 'Patrol a page or revision'; + return 'Patrol a page or revision.'; } public function getPossibleErrors() { diff --git a/includes/api/ApiProtect.php b/includes/api/ApiProtect.php index 644e97ee2a..27f0f1eecc 100644 --- a/includes/api/ApiProtect.php +++ b/includes/api/ApiProtect.php @@ -212,7 +212,7 @@ class ApiProtect extends ApiBase { } public function getDescription() { - return 'Change the protection level of a page'; + return 'Change the protection level of a page.'; } public function getPossibleErrors() { diff --git a/includes/api/ApiPurge.php b/includes/api/ApiPurge.php index 3516bf298a..e5d6a3c0cd 100644 --- a/includes/api/ApiPurge.php +++ b/includes/api/ApiPurge.php @@ -182,7 +182,7 @@ class ApiPurge extends ApiBase { public function getDescription() { return array( 'Purge the cache for the given titles.', - 'Requires a POST request if the user is not logged in' + 'Requires a POST request if the user is not logged in.' ); } diff --git a/includes/api/ApiQuery.php b/includes/api/ApiQuery.php index 49ab59177a..c6ae611e52 100644 --- a/includes/api/ApiQuery.php +++ b/includes/api/ApiQuery.php @@ -736,7 +736,7 @@ class ApiQuery extends ApiBase { 'from the MediaWiki databases,', 'and is loosely based on the old query.php interface.', 'All data modifications will first have to use query to acquire a ' . - 'token to prevent abuse from malicious sites' + 'token to prevent abuse from malicious sites.' ); } diff --git a/includes/api/ApiQueryAllCategories.php b/includes/api/ApiQueryAllCategories.php index 44bf0cb9ca..8a1810b2fc 100644 --- a/includes/api/ApiQueryAllCategories.php +++ b/includes/api/ApiQueryAllCategories.php @@ -225,7 +225,7 @@ class ApiQueryAllCategories extends ApiQueryGeneratorBase { } public function getDescription() { - return 'Enumerate all categories'; + return 'Enumerate all categories.'; } public function getExamples() { diff --git a/includes/api/ApiQueryAllImages.php b/includes/api/ApiQueryAllImages.php index 4095bd81fd..0591fa9690 100644 --- a/includes/api/ApiQueryAllImages.php +++ b/includes/api/ApiQueryAllImages.php @@ -394,7 +394,7 @@ class ApiQueryAllImages extends ApiQueryGeneratorBase { } public function getDescription() { - return 'Enumerate all images sequentially'; + return 'Enumerate all images sequentially.'; } public function getPossibleErrors() { diff --git a/includes/api/ApiQueryAllMessages.php b/includes/api/ApiQueryAllMessages.php index 6b1d5a2a7c..09f40fd2fa 100644 --- a/includes/api/ApiQueryAllMessages.php +++ b/includes/api/ApiQueryAllMessages.php @@ -285,7 +285,7 @@ class ApiQueryAllMessages extends ApiQueryBase { } public function getDescription() { - return 'Return messages from this site'; + return 'Return messages from this site.'; } public function getExamples() { diff --git a/includes/api/ApiQueryAllPages.php b/includes/api/ApiQueryAllPages.php index 501154a60e..8ae8f3e055 100644 --- a/includes/api/ApiQueryAllPages.php +++ b/includes/api/ApiQueryAllPages.php @@ -341,7 +341,7 @@ class ApiQueryAllPages extends ApiQueryGeneratorBase { } public function getDescription() { - return 'Enumerate all pages sequentially in a given namespace'; + return 'Enumerate all pages sequentially in a given namespace.'; } public function getPossibleErrors() { diff --git a/includes/api/ApiQueryAllUsers.php b/includes/api/ApiQueryAllUsers.php index 748dbaf617..7915118cfd 100644 --- a/includes/api/ApiQueryAllUsers.php +++ b/includes/api/ApiQueryAllUsers.php @@ -438,7 +438,7 @@ class ApiQueryAllUsers extends ApiQueryBase { } public function getDescription() { - return 'Enumerate all registered users'; + return 'Enumerate all registered users.'; } public function getPossibleErrors() { diff --git a/includes/api/ApiQueryBacklinks.php b/includes/api/ApiQueryBacklinks.php index a0460fd89c..9502d115b0 100644 --- a/includes/api/ApiQueryBacklinks.php +++ b/includes/api/ApiQueryBacklinks.php @@ -534,13 +534,13 @@ class ApiQueryBacklinks extends ApiQueryGeneratorBase { public function getDescription() { switch ( $this->getModuleName() ) { case 'backlinks': - return 'Find all pages that link to the given page'; + return 'Find all pages that link to the given page.'; case 'embeddedin': - return 'Find all pages that embed (transclude) the given title'; + return 'Find all pages that embed (transclude) the given title.'; case 'imageusage': - return 'Find all pages that use the given image title'; + return 'Find all pages that use the given image title.'; default: - ApiBase::dieDebug( __METHOD__, 'Unknown module name' ); + ApiBase::dieDebug( __METHOD__, 'Unknown module name.' ); } } diff --git a/includes/api/ApiQueryBlocks.php b/includes/api/ApiQueryBlocks.php index 47768cb70b..6cc018321e 100644 --- a/includes/api/ApiQueryBlocks.php +++ b/includes/api/ApiQueryBlocks.php @@ -408,7 +408,7 @@ class ApiQueryBlocks extends ApiQueryBase { } public function getDescription() { - return 'List all blocked users and IP addresses'; + return 'List all blocked users and IP addresses.'; } public function getPossibleErrors() { diff --git a/includes/api/ApiQueryCategories.php b/includes/api/ApiQueryCategories.php index c5b12b3290..30d74494a9 100644 --- a/includes/api/ApiQueryCategories.php +++ b/includes/api/ApiQueryCategories.php @@ -254,7 +254,7 @@ class ApiQueryCategories extends ApiQueryGeneratorBase { } public function getDescription() { - return 'List all categories the page(s) belong to'; + return 'List all categories the page(s) belong to.'; } public function getPossibleErrors() { diff --git a/includes/api/ApiQueryCategoryInfo.php b/includes/api/ApiQueryCategoryInfo.php index 574ef6e51e..d0e3a360c9 100644 --- a/includes/api/ApiQueryCategoryInfo.php +++ b/includes/api/ApiQueryCategoryInfo.php @@ -143,7 +143,7 @@ class ApiQueryCategoryInfo extends ApiQueryBase { } public function getDescription() { - return 'Returns information about the given categories'; + return 'Returns information about the given categories.'; } public function getExamples() { diff --git a/includes/api/ApiQueryCategoryMembers.php b/includes/api/ApiQueryCategoryMembers.php index f7bd59a5b5..4e942d6d19 100644 --- a/includes/api/ApiQueryCategoryMembers.php +++ b/includes/api/ApiQueryCategoryMembers.php @@ -401,7 +401,7 @@ class ApiQueryCategoryMembers extends ApiQueryGeneratorBase { } public function getDescription() { - return 'List all pages in a given category'; + return 'List all pages in a given category.'; } public function getPossibleErrors() { diff --git a/includes/api/ApiQueryContributors.php b/includes/api/ApiQueryContributors.php index 37fb489564..912ac0213e 100644 --- a/includes/api/ApiQueryContributors.php +++ b/includes/api/ApiQueryContributors.php @@ -275,7 +275,7 @@ class ApiQueryContributors extends ApiQueryBase { public function getDescription() { return 'Get the list of logged-in contributors and ' . - 'the count of anonymous contributors to a page'; + 'the count of anonymous contributors to a page.'; } public function getExamples() { diff --git a/includes/api/ApiQueryDeletedrevs.php b/includes/api/ApiQueryDeletedrevs.php index 365fe3f2ad..f738c507cc 100644 --- a/includes/api/ApiQueryDeletedrevs.php +++ b/includes/api/ApiQueryDeletedrevs.php @@ -492,12 +492,12 @@ class ApiQueryDeletedrevs extends ApiQueryBase { return array( 'List deleted revisions.', 'Operates in three modes:', - ' 1) List deleted revisions for the given title(s), sorted by timestamp', - ' 2) List deleted contributions for the given user, sorted by timestamp (no titles specified)', + ' 1) List deleted revisions for the given title(s), sorted by timestamp.', + ' 2) List deleted contributions for the given user, sorted by timestamp (no titles specified).', " 3) List all deleted revisions in the given namespace, sorted by title and timestamp', - ' (no titles specified, {$p}user not set)", + ' (no titles specified, {$p}user not set).", 'Certain parameters only apply to some modes and are ignored in others.', - 'For instance, a parameter marked (1) only applies to mode 1 and is ignored in modes 2 and 3', + 'For instance, a parameter marked (1) only applies to mode 1 and is ignored in modes 2 and 3.', ); } diff --git a/includes/api/ApiQueryDisabled.php b/includes/api/ApiQueryDisabled.php index b1b2495093..cf0d841eaa 100644 --- a/includes/api/ApiQueryDisabled.php +++ b/includes/api/ApiQueryDisabled.php @@ -50,7 +50,7 @@ class ApiQueryDisabled extends ApiQueryBase { public function getDescription() { return array( - 'This module has been disabled' + 'This module has been disabled.' ); } diff --git a/includes/api/ApiQueryDuplicateFiles.php b/includes/api/ApiQueryDuplicateFiles.php index 185469499b..3105f91abe 100644 --- a/includes/api/ApiQueryDuplicateFiles.php +++ b/includes/api/ApiQueryDuplicateFiles.php @@ -200,7 +200,7 @@ class ApiQueryDuplicateFiles extends ApiQueryGeneratorBase { } public function getDescription() { - return 'List all files that are duplicates of the given file(s) based on hash values'; + return 'List all files that are duplicates of the given file(s) based on hash values.'; } public function getExamples() { diff --git a/includes/api/ApiQueryExtLinksUsage.php b/includes/api/ApiQueryExtLinksUsage.php index d22081773a..f09fbd58af 100644 --- a/includes/api/ApiQueryExtLinksUsage.php +++ b/includes/api/ApiQueryExtLinksUsage.php @@ -257,7 +257,7 @@ class ApiQueryExtLinksUsage extends ApiQueryGeneratorBase { } public function getDescription() { - return 'Enumerate pages that contain a given URL'; + return 'Enumerate pages that contain a given URL.'; } public function getPossibleErrors() { diff --git a/includes/api/ApiQueryExternalLinks.php b/includes/api/ApiQueryExternalLinks.php index 5803ea7b44..f7a0958dac 100644 --- a/includes/api/ApiQueryExternalLinks.php +++ b/includes/api/ApiQueryExternalLinks.php @@ -150,7 +150,7 @@ class ApiQueryExternalLinks extends ApiQueryBase { } public function getDescription() { - return 'Returns all external URLs (not interwikis) from the given page(s)'; + return 'Returns all external URLs (not interwikis) from the given page(s).'; } public function getPossibleErrors() { diff --git a/includes/api/ApiQueryFileRepoInfo.php b/includes/api/ApiQueryFileRepoInfo.php index 196b3ff8e5..d9579a1016 100644 --- a/includes/api/ApiQueryFileRepoInfo.php +++ b/includes/api/ApiQueryFileRepoInfo.php @@ -104,7 +104,7 @@ class ApiQueryFileRepoInfo extends ApiQueryBase { } public function getDescription() { - return 'Return meta information about image repositories configured on the wiki'; + return 'Return meta information about image repositories configured on the wiki.'; } public function getExamples() { diff --git a/includes/api/ApiQueryFilearchive.php b/includes/api/ApiQueryFilearchive.php index bcbc64245a..e12d927752 100644 --- a/includes/api/ApiQueryFilearchive.php +++ b/includes/api/ApiQueryFilearchive.php @@ -367,7 +367,7 @@ class ApiQueryFilearchive extends ApiQueryBase { } public function getDescription() { - return 'Enumerate all deleted files sequentially'; + return 'Enumerate all deleted files sequentially.'; } public function getPossibleErrors() { diff --git a/includes/api/ApiQueryIWBacklinks.php b/includes/api/ApiQueryIWBacklinks.php index 03a72a6067..e4cecd5924 100644 --- a/includes/api/ApiQueryIWBacklinks.php +++ b/includes/api/ApiQueryIWBacklinks.php @@ -231,7 +231,7 @@ class ApiQueryIWBacklinks extends ApiQueryGeneratorBase { return array( 'Find all pages that link to the given interwiki link.', 'Can be used to find all links with a prefix, or', 'all links to a title (with a given prefix).', - 'Using neither parameter is effectively "All IW Links"', + 'Using neither parameter is effectively "All IW Links".', ); } diff --git a/includes/api/ApiQueryIWLinks.php b/includes/api/ApiQueryIWLinks.php index be64d36921..a7b69a0dd3 100644 --- a/includes/api/ApiQueryIWLinks.php +++ b/includes/api/ApiQueryIWLinks.php @@ -185,7 +185,7 @@ class ApiQueryIWLinks extends ApiQueryBase { } public function getDescription() { - return 'Returns all interwiki links from the given page(s)'; + return 'Returns all interwiki links from the given page(s).'; } public function getPossibleErrors() { diff --git a/includes/api/ApiQueryImageInfo.php b/includes/api/ApiQueryImageInfo.php index 95c1420eeb..369d4c92f2 100644 --- a/includes/api/ApiQueryImageInfo.php +++ b/includes/api/ApiQueryImageInfo.php @@ -873,7 +873,7 @@ class ApiQueryImageInfo extends ApiQueryBase { } public function getDescription() { - return 'Returns image information and upload history'; + return 'Returns image information and upload history.'; } public function getPossibleErrors() { diff --git a/includes/api/ApiQueryImages.php b/includes/api/ApiQueryImages.php index a32fb9ed66..a66ad40a70 100644 --- a/includes/api/ApiQueryImages.php +++ b/includes/api/ApiQueryImages.php @@ -180,7 +180,7 @@ class ApiQueryImages extends ApiQueryGeneratorBase { } public function getDescription() { - return 'Returns all images contained on the given page(s)'; + return 'Returns all images contained on the given page(s).'; } public function getExamples() { diff --git a/includes/api/ApiQueryLangBacklinks.php b/includes/api/ApiQueryLangBacklinks.php index 49322ce35e..e6280c853a 100644 --- a/includes/api/ApiQueryLangBacklinks.php +++ b/includes/api/ApiQueryLangBacklinks.php @@ -231,7 +231,7 @@ class ApiQueryLangBacklinks extends ApiQueryGeneratorBase { 'Can be used to find all links with a language code, or', 'all links to a title (with a given language).', 'Using neither parameter is effectively "All Language Links".', - 'Note that this may not consider language links added by extensions', + 'Note that this may not consider language links added by extensions.', ); } diff --git a/includes/api/ApiQueryLangLinks.php b/includes/api/ApiQueryLangLinks.php index 5a45a28fa8..8e155f2816 100644 --- a/includes/api/ApiQueryLangLinks.php +++ b/includes/api/ApiQueryLangLinks.php @@ -213,7 +213,7 @@ class ApiQueryLangLinks extends ApiQueryBase { } public function getDescription() { - return 'Returns all interlanguage links from the given page(s)'; + return 'Returns all interlanguage links from the given page(s).'; } public function getPossibleErrors() { diff --git a/includes/api/ApiQueryLinks.php b/includes/api/ApiQueryLinks.php index 1eecbe2e09..dd816cfee5 100644 --- a/includes/api/ApiQueryLinks.php +++ b/includes/api/ApiQueryLinks.php @@ -233,7 +233,7 @@ class ApiQueryLinks extends ApiQueryGeneratorBase { } public function getDescription() { - return "Returns all {$this->description}s from the given page(s)"; + return "Returns all {$this->description}s from the given page(s)."; } public function getExamples() { diff --git a/includes/api/ApiQueryLogEvents.php b/includes/api/ApiQueryLogEvents.php index 848c6ceb1d..9953db0214 100644 --- a/includes/api/ApiQueryLogEvents.php +++ b/includes/api/ApiQueryLogEvents.php @@ -561,7 +561,7 @@ class ApiQueryLogEvents extends ApiQueryBase { } public function getDescription() { - return 'Get events from logs'; + return 'Get events from logs.'; } public function getPossibleErrors() { diff --git a/includes/api/ApiQueryPagePropNames.php b/includes/api/ApiQueryPagePropNames.php index 5438175bd6..c38747546b 100644 --- a/includes/api/ApiQueryPagePropNames.php +++ b/includes/api/ApiQueryPagePropNames.php @@ -102,7 +102,7 @@ class ApiQueryPagePropNames extends ApiQueryBase { } public function getDescription() { - return 'List all page prop names in use on the wiki'; + return 'List all page prop names in use on the wiki.'; } public function getExamples() { diff --git a/includes/api/ApiQueryPageProps.php b/includes/api/ApiQueryPageProps.php index e51c7ab07e..52be5cad83 100644 --- a/includes/api/ApiQueryPageProps.php +++ b/includes/api/ApiQueryPageProps.php @@ -141,7 +141,7 @@ class ApiQueryPageProps extends ApiQueryBase { } public function getDescription() { - return 'Get various properties defined in the page content'; + return 'Get various properties defined in the page content.'; } public function getExamples() { diff --git a/includes/api/ApiQueryPagesWithProp.php b/includes/api/ApiQueryPagesWithProp.php index e68eb5670e..df072490d8 100644 --- a/includes/api/ApiQueryPagesWithProp.php +++ b/includes/api/ApiQueryPagesWithProp.php @@ -174,7 +174,7 @@ class ApiQueryPagesWithProp extends ApiQueryGeneratorBase { } public function getDescription() { - return 'List all pages using a given page prop'; + return 'List all pages using a given page prop.'; } public function getExamples() { diff --git a/includes/api/ApiQueryProtectedTitles.php b/includes/api/ApiQueryProtectedTitles.php index ea350adde3..9cdd6b9104 100644 --- a/includes/api/ApiQueryProtectedTitles.php +++ b/includes/api/ApiQueryProtectedTitles.php @@ -258,7 +258,7 @@ class ApiQueryProtectedTitles extends ApiQueryGeneratorBase { } public function getDescription() { - return 'List all titles protected from creation'; + return 'List all titles protected from creation.'; } public function getExamples() { diff --git a/includes/api/ApiQueryQueryPage.php b/includes/api/ApiQueryQueryPage.php index 88af62b6d3..2fc26760c6 100644 --- a/includes/api/ApiQueryQueryPage.php +++ b/includes/api/ApiQueryQueryPage.php @@ -203,7 +203,7 @@ class ApiQueryQueryPage extends ApiQueryGeneratorBase { } public function getDescription() { - return 'Get a list provided by a QueryPage-based special page'; + return 'Get a list provided by a QueryPage-based special page.'; } public function getPossibleErrors() { diff --git a/includes/api/ApiQueryRandom.php b/includes/api/ApiQueryRandom.php index 0d54ffef09..5f85e0e9f2 100644 --- a/includes/api/ApiQueryRandom.php +++ b/includes/api/ApiQueryRandom.php @@ -185,13 +185,13 @@ class ApiQueryRandom extends ApiQueryGeneratorBase { public function getDescription() { return array( - 'Get a set of random pages', + 'Get a set of random pages.', 'NOTE: Pages are listed in a fixed sequence, only the starting point is random.', ' This means that if, for example, "Main Page" is the first random page on', ' your list, "List of fictional monkeys" will *always* be second, "List of', - ' people on stamps of Vanuatu" third, etc', + ' people on stamps of Vanuatu" third, etc.', 'NOTE: If the number of pages in the namespace is lower than rnlimit, you will', - ' get fewer pages. You will not get the same page twice' + ' get fewer pages. You will not get the same page twice.' ); } diff --git a/includes/api/ApiQueryRecentChanges.php b/includes/api/ApiQueryRecentChanges.php index 30dd741026..0284916ead 100644 --- a/includes/api/ApiQueryRecentChanges.php +++ b/includes/api/ApiQueryRecentChanges.php @@ -892,7 +892,7 @@ class ApiQueryRecentChanges extends ApiQueryGeneratorBase { } public function getDescription() { - return 'Enumerate recent changes'; + return 'Enumerate recent changes.'; } public function getPossibleErrors() { diff --git a/includes/api/ApiQueryRedirects.php b/includes/api/ApiQueryRedirects.php index c046109d3a..1deb1f84d8 100644 --- a/includes/api/ApiQueryRedirects.php +++ b/includes/api/ApiQueryRedirects.php @@ -249,7 +249,7 @@ class ApiQueryRedirects extends ApiQueryGeneratorBase { } public function getDescription() { - return 'Returns all redirects to the given page(s)'; + return 'Returns all redirects to the given page(s).'; } public function getExamples() { diff --git a/includes/api/ApiQueryRevisions.php b/includes/api/ApiQueryRevisions.php index 65cb16d004..033976f175 100644 --- a/includes/api/ApiQueryRevisions.php +++ b/includes/api/ApiQueryRevisions.php @@ -874,12 +874,12 @@ class ApiQueryRevisions extends ApiQueryBase { public function getDescription() { return array( - 'Get revision information', + 'Get revision information.', 'May be used in several ways:', - ' 1) Get data about a set of pages (last revision), by setting titles or pageids parameter', - ' 2) Get revisions for one given page, by using titles/pageids with start/end/limit params', - ' 3) Get data about a set of revisions by setting their IDs with revids parameter', - 'All parameters marked as (enum) may only be used with a single page (#2)' + ' 1) Get data about a set of pages (last revision), by setting titles or pageids parameter.', + ' 2) Get revisions for one given page, by using titles/pageids with start/end/limit params.', + ' 3) Get data about a set of revisions by setting their IDs with revids parameter.', + 'All parameters marked as (enum) may only be used with a single page (#2).' ); } diff --git a/includes/api/ApiQuerySearch.php b/includes/api/ApiQuerySearch.php index 1132a60de6..fcaaf1033a 100644 --- a/includes/api/ApiQuerySearch.php +++ b/includes/api/ApiQuerySearch.php @@ -416,7 +416,7 @@ class ApiQuerySearch extends ApiQueryGeneratorBase { } public function getDescription() { - return 'Perform a full text search'; + return 'Perform a full text search.'; } public function getPossibleErrors() { diff --git a/includes/api/ApiQuerySiteinfo.php b/includes/api/ApiQuerySiteinfo.php index a07801369e..1cd8d98e5c 100644 --- a/includes/api/ApiQuerySiteinfo.php +++ b/includes/api/ApiQuerySiteinfo.php @@ -821,7 +821,7 @@ class ApiQuerySiteinfo extends ApiQueryBase { } public function getDescription() { - return 'Return general information about the site'; + return 'Return general information about the site.'; } public function getPossibleErrors() { diff --git a/includes/api/ApiQueryStashImageInfo.php b/includes/api/ApiQueryStashImageInfo.php index 248b3d8b23..3595cf96c2 100644 --- a/includes/api/ApiQueryStashImageInfo.php +++ b/includes/api/ApiQueryStashImageInfo.php @@ -129,7 +129,7 @@ class ApiQueryStashImageInfo extends ApiQueryImageInfo { } public function getDescription() { - return 'Returns image information for stashed images'; + return 'Returns image information for stashed images.'; } public function getExamples() { diff --git a/includes/api/ApiQueryTags.php b/includes/api/ApiQueryTags.php index 33116ce752..9e2559f029 100644 --- a/includes/api/ApiQueryTags.php +++ b/includes/api/ApiQueryTags.php @@ -188,7 +188,7 @@ class ApiQueryTags extends ApiQueryBase { } public function getDescription() { - return 'List change tags'; + return 'List change tags.'; } public function getExamples() { diff --git a/includes/api/ApiQueryUserContributions.php b/includes/api/ApiQueryUserContributions.php index 16108a2c90..b58a951a34 100644 --- a/includes/api/ApiQueryUserContributions.php +++ b/includes/api/ApiQueryUserContributions.php @@ -601,7 +601,7 @@ class ApiQueryContributions extends ApiQueryBase { } public function getDescription() { - return 'Get all edits by a user'; + return 'Get all edits by a user.'; } public function getPossibleErrors() { diff --git a/includes/api/ApiQueryUserInfo.php b/includes/api/ApiQueryUserInfo.php index 37cf483039..200b03bcee 100644 --- a/includes/api/ApiQueryUserInfo.php +++ b/includes/api/ApiQueryUserInfo.php @@ -299,7 +299,7 @@ class ApiQueryUserInfo extends ApiQueryBase { } public function getDescription() { - return 'Get information about the current user'; + return 'Get information about the current user.'; } public function getExamples() { diff --git a/includes/api/ApiQueryUsers.php b/includes/api/ApiQueryUsers.php index cd4a8fcf0f..d98cc39cfe 100644 --- a/includes/api/ApiQueryUsers.php +++ b/includes/api/ApiQueryUsers.php @@ -387,7 +387,7 @@ class ApiQueryUsers extends ApiQueryBase { } public function getDescription() { - return 'Get information about a list of users'; + return 'Get information about a list of users.'; } public function getExamples() { diff --git a/includes/api/ApiQueryWatchlist.php b/includes/api/ApiQueryWatchlist.php index b7dc86543c..6baa87dca4 100644 --- a/includes/api/ApiQueryWatchlist.php +++ b/includes/api/ApiQueryWatchlist.php @@ -674,7 +674,7 @@ class ApiQueryWatchlist extends ApiQueryGeneratorBase { } public function getDescription() { - return "Get all recent changes to pages in the logged in user's watchlist"; + return "Get all recent changes to pages in the logged in user's watchlist."; } public function getPossibleErrors() { diff --git a/includes/api/ApiQueryWatchlistRaw.php b/includes/api/ApiQueryWatchlistRaw.php index b53bea1abd..f45d0e4827 100644 --- a/includes/api/ApiQueryWatchlistRaw.php +++ b/includes/api/ApiQueryWatchlistRaw.php @@ -205,7 +205,7 @@ class ApiQueryWatchlistRaw extends ApiQueryGeneratorBase { } public function getDescription() { - return "Get all pages on the logged in user's watchlist"; + return "Get all pages on the logged in user's watchlist."; } public function getPossibleErrors() { diff --git a/includes/api/ApiRevisionDelete.php b/includes/api/ApiRevisionDelete.php index 05457b3d11..1400b0d5e2 100644 --- a/includes/api/ApiRevisionDelete.php +++ b/includes/api/ApiRevisionDelete.php @@ -217,7 +217,7 @@ class ApiRevisionDelete extends ApiBase { } public function getDescription() { - return 'Delete/undelete revisions'; + return 'Delete/undelete revisions.'; } public function getPossibleErrors() { diff --git a/includes/api/ApiRollback.php b/includes/api/ApiRollback.php index 2a372e4ea3..70a2fec29b 100644 --- a/includes/api/ApiRollback.php +++ b/includes/api/ApiRollback.php @@ -141,7 +141,7 @@ class ApiRollback extends ApiBase { public function getDescription() { return array( 'Undo the last edit to the page. If the last user who edited the page made', - 'multiple edits in a row, they will all be rolled back' + 'multiple edits in a row, they will all be rolled back.' ); } diff --git a/includes/api/ApiRsd.php b/includes/api/ApiRsd.php index e01f0fa9ac..285177cee7 100644 --- a/includes/api/ApiRsd.php +++ b/includes/api/ApiRsd.php @@ -60,7 +60,7 @@ class ApiRsd extends ApiBase { } public function getDescription() { - return 'Export an RSD (Really Simple Discovery) schema'; + return 'Export an RSD (Really Simple Discovery) schema.'; } public function getExamples() { diff --git a/includes/api/ApiRunJobs.php b/includes/api/ApiRunJobs.php index e23aaf548a..05327c8ab1 100644 --- a/includes/api/ApiRunJobs.php +++ b/includes/api/ApiRunJobs.php @@ -161,7 +161,7 @@ class ApiRunJobs extends ApiBase { } public function getDescription() { - return 'Perform periodic tasks or run jobs from the queue'; + return 'Perform periodic tasks or run jobs from the queue.'; } public function getExamples() { diff --git a/includes/api/ApiSetNotificationTimestamp.php b/includes/api/ApiSetNotificationTimestamp.php index 70e36d280f..dc593e5f91 100644 --- a/includes/api/ApiSetNotificationTimestamp.php +++ b/includes/api/ApiSetNotificationTimestamp.php @@ -273,7 +273,7 @@ class ApiSetNotificationTimestamp extends ApiBase { return array( 'Update the notification timestamp for watched pages.', 'This affects the highlighting of changed pages in the watchlist and history,', 'and the sending of email when the "Email me when a page on my watchlist is', - 'changed" preference is enabled' + 'changed" preference is enabled.' ); } diff --git a/includes/api/ApiTokens.php b/includes/api/ApiTokens.php index 6862668d9b..5e197db7ce 100644 --- a/includes/api/ApiTokens.php +++ b/includes/api/ApiTokens.php @@ -98,7 +98,7 @@ class ApiTokens extends ApiBase { } public function getDescription() { - return 'Gets tokens for data-modifying actions'; + return 'Gets tokens for data-modifying actions.'; } protected function getExamples() { diff --git a/includes/api/ApiUnblock.php b/includes/api/ApiUnblock.php index 46e2f6e13c..f34d4dfa6c 100644 --- a/includes/api/ApiUnblock.php +++ b/includes/api/ApiUnblock.php @@ -131,7 +131,7 @@ class ApiUnblock extends ApiBase { } public function getDescription() { - return 'Unblock a user'; + return 'Unblock a user.'; } public function getPossibleErrors() { diff --git a/includes/api/ApiUndelete.php b/includes/api/ApiUndelete.php index 93cefef097..332ed51157 100644 --- a/includes/api/ApiUndelete.php +++ b/includes/api/ApiUndelete.php @@ -143,7 +143,7 @@ class ApiUndelete extends ApiBase { public function getDescription() { return array( 'Restore certain revisions of a deleted page. A list of deleted revisions ', - '(including timestamps) can be retrieved through list=deletedrevs' + '(including timestamps) can be retrieved through list=deletedrevs.' ); } diff --git a/includes/api/ApiUpload.php b/includes/api/ApiUpload.php index 7d0d78e1e8..c54e8baad3 100644 --- a/includes/api/ApiUpload.php +++ b/includes/api/ApiUpload.php @@ -819,7 +819,7 @@ class ApiUpload extends ApiBase { ' * Have the MediaWiki server fetch a file from a URL, using the "url" parameter', ' * Complete an earlier upload that failed due to warnings, using the "filekey" parameter', 'Note that the HTTP POST must be done as a file upload (i.e. using multipart/form-data) when', - 'sending the "file". Also you must get and send an edit token before doing any upload stuff' + 'sending the "file". Also you must get and send an edit token before doing any upload stuff.' ); } diff --git a/includes/api/ApiUserrights.php b/includes/api/ApiUserrights.php index 2bd7321954..0bed859356 100644 --- a/includes/api/ApiUserrights.php +++ b/includes/api/ApiUserrights.php @@ -123,7 +123,7 @@ class ApiUserrights extends ApiBase { } public function getDescription() { - return 'Add/remove a user to/from groups'; + return 'Add/remove a user to/from groups.'; } public function needsToken() { diff --git a/includes/api/ApiWatch.php b/includes/api/ApiWatch.php index 100ee96270..6dfb1b4a83 100644 --- a/includes/api/ApiWatch.php +++ b/includes/api/ApiWatch.php @@ -211,7 +211,7 @@ class ApiWatch extends ApiBase { } public function getDescription() { - return 'Add or remove pages from/to the current user\'s watchlist'; + return 'Add or remove pages from/to the current user\'s watchlist.'; } public function getPossibleErrors() { -- 2.20.1