Consistency: made all API examples a verbs
authorMax Semenik <maxsem@users.mediawiki.org>
Thu, 12 Jan 2012 17:36:06 +0000 (17:36 +0000)
committerMax Semenik <maxsem@users.mediawiki.org>
Thu, 12 Jan 2012 17:36:06 +0000 (17:36 +0000)
includes/api/ApiComparePages.php
includes/api/ApiDelete.php
includes/api/ApiEmailUser.php
includes/api/ApiFormatBase.php
includes/api/ApiLogout.php
includes/api/ApiPurge.php

index 7328902..4bb94c4 100644 (file)
@@ -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',
                );
        }
 
index 9d850cc..cfaf6cc 100644 (file)
@@ -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"',
                );
        }
 
index 004ca73..d9eed60 100644 (file)
@@ -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"',
                );
        }
 
index 7a53b64..6747632 100644 (file)
@@ -288,7 +288,7 @@ See <a href='https://www.mediawiki.org/wiki/API'>complete documentation</a>, 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",
                );
        }
 
index 0e4ae53..81a054a 100644 (file)
@@ -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',
                );
        }
 
index 6bf5cb8..dfa7229 100644 (file)
@@ -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',
                );
        }