From c7bc27d5f8f86d4aa696adb90737cb88d5d39050 Mon Sep 17 00:00:00 2001 From: Max Semenik Date: Thu, 12 Jan 2012 17:36:06 +0000 Subject: [PATCH] Consistency: made all API examples a verbs --- includes/api/ApiComparePages.php | 2 +- includes/api/ApiDelete.php | 4 ++-- includes/api/ApiEmailUser.php | 2 +- includes/api/ApiFormatBase.php | 2 +- includes/api/ApiLogout.php | 2 +- includes/api/ApiPurge.php | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/includes/api/ApiComparePages.php b/includes/api/ApiComparePages.php index 7328902436..4bb94c4af9 100644 --- a/includes/api/ApiComparePages.php +++ b/includes/api/ApiComparePages.php @@ -120,7 +120,7 @@ class ApiComparePages extends ApiBase { public function getExamples() { return array( - 'api.php?action=compare&fromrev=1&torev=2' => 'Creates a diff between revision 1 and 2', + 'api.php?action=compare&fromrev=1&torev=2' => 'Create a diff between revision 1 and 2', ); } diff --git a/includes/api/ApiDelete.php b/includes/api/ApiDelete.php index 9d850cc8a1..cfaf6cc1d7 100644 --- a/includes/api/ApiDelete.php +++ b/includes/api/ApiDelete.php @@ -263,8 +263,8 @@ class ApiDelete extends ApiBase { public function getExamples() { return array( - 'api.php?action=delete&title=Main%20Page&token=123ABC' => 'Deletes the Main Page', - 'api.php?action=delete&title=Main%20Page&token=123ABC&reason=Preparing%20for%20move' => 'Deletes the Main Page with the reason "Preparing for move"', + 'api.php?action=delete&title=Main%20Page&token=123ABC' => 'Delete the Main Page', + 'api.php?action=delete&title=Main%20Page&token=123ABC&reason=Preparing%20for%20move' => 'Delete the Main Page with the reason "Preparing for move"', ); } diff --git a/includes/api/ApiEmailUser.php b/includes/api/ApiEmailUser.php index 004ca73601..d9eed60cee 100644 --- a/includes/api/ApiEmailUser.php +++ b/includes/api/ApiEmailUser.php @@ -133,7 +133,7 @@ class ApiEmailUser extends ApiBase { public function getExamples() { return array( - 'api.php?action=emailuser&target=WikiSysop&text=Content' => 'Sends an email to the User "WikiSysop" with the text "Content"', + 'api.php?action=emailuser&target=WikiSysop&text=Content' => 'Send an email to the User "WikiSysop" with the text "Content"', ); } diff --git a/includes/api/ApiFormatBase.php b/includes/api/ApiFormatBase.php index 7a53b64105..674763299b 100644 --- a/includes/api/ApiFormatBase.php +++ b/includes/api/ApiFormatBase.php @@ -288,7 +288,7 @@ See complete documentation, or public function getExamples() { return array( 'api.php?action=query&meta=siteinfo&siprop=namespaces&format=' . $this->getModuleName() - => "Formats the query result in the {$this->getModuleName()} format", + => "Format the query result in the {$this->getModuleName()} format", ); } diff --git a/includes/api/ApiLogout.php b/includes/api/ApiLogout.php index 0e4ae5378f..81a054a674 100644 --- a/includes/api/ApiLogout.php +++ b/includes/api/ApiLogout.php @@ -64,7 +64,7 @@ class ApiLogout extends ApiBase { public function getExamples() { return array( - 'api.php?action=logout' => 'Logs the current user out', + 'api.php?action=logout' => 'Log the current user out', ); } diff --git a/includes/api/ApiPurge.php b/includes/api/ApiPurge.php index 6bf5cb8f25..dfa7229e96 100644 --- a/includes/api/ApiPurge.php +++ b/includes/api/ApiPurge.php @@ -149,7 +149,7 @@ class ApiPurge extends ApiBase { public function getExamples() { return array( - 'api.php?action=purge&titles=Main_Page|API' => 'Purges the "Main Page" and the "API" page', + 'api.php?action=purge&titles=Main_Page|API' => 'Purge the "Main Page" and the "API" page', ); } -- 2.20.1