API: More cleanup:
authorRoan Kattouw <catrope@users.mediawiki.org>
Thu, 10 Jul 2008 14:28:09 +0000 (14:28 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Thu, 10 Jul 2008 14:28:09 +0000 (14:28 +0000)
* Cleaning up some comments
* Breaking the description for iiurlwidth in two lines
* Clarifying the descriptions for amfilter and amlang

includes/api/ApiQueryAllmessages.php
includes/api/ApiQueryBacklinks.php
includes/api/ApiQueryCategoryInfo.php
includes/api/ApiQueryImageInfo.php

index 8f0be01..96b131b 100644 (file)
@@ -108,8 +108,8 @@ class ApiQueryAllmessages extends ApiQueryBase {
        public function getParamDescription() {
                return array (
                        'messages' => 'Which messages to output. "*" means all messages',
-                       'filter' => 'Return only messages that contains specified string',
-                       'lang' => 'Language code',
+                       'filter' => 'Return only messages that contain this string',
+                       'lang' => 'Return messages in this language',
                );
        }
 
index 6289ce6..825d5f4 100644 (file)
@@ -29,7 +29,7 @@ if (!defined('MEDIAWIKI')) {
 }
 
 /**
- * This is three-in-one module to query:
+ * This is three-in-one module to query:
  *   * backlinks  - links pointing to the given page,
  *   * embeddedin - what pages transclude the given page within themselves,
  *   * imageusage - what pages use the given image
index bbb428e..aae7279 100644 (file)
@@ -29,7 +29,7 @@ if (!defined('MEDIAWIKI')) {
 }
 
 /**
- * This query adds <images> subelement to all pages with the list of images embedded into those pages.
+ * This query adds <categories> subelement to all pages with the list of images embedded into those pages.
  *
  * @ingroup API
  */
index 1186a3a..d28792a 100644 (file)
@@ -199,7 +199,8 @@ class ApiQueryImageInfo extends ApiQueryBase {
                        'limit' => 'How many image revisions to return',
                        'start' => 'Timestamp to start listing from',
                        'end' => 'Timestamp to stop listing at',
-                       'urlwidth' => 'If iiprop=url is set, a URL to an image scaled to this width will be returned. Only the current version of the image can be scaled.',
+                       'urlwidth' => array('If iiprop=url is set, a URL to an image scaled to this width will be returned.',
+                                           'Only the current version of the image can be scaled.'),
                        'urlheight' => 'Similar to iiurlwidth. Cannot be used without iiurlwidth',
                );
        }