r37504 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r37503‎ | r37504 | r37505 >
Date:14:28, 10 July 2008
Author:catrope
Status:old
Tags:
Comment:
API: More cleanup:
* Cleaning up some comments
* Breaking the description for iiurlwidth in two lines
* Clarifying the descriptions for amfilter and amlang
Modified paths:
  • /trunk/phase3/includes/api/ApiQueryAllmessages.php (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryBacklinks.php (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryCategoryInfo.php (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryImageInfo.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQueryImageInfo.php
@@ -199,7 +199,8 @@
200200 'limit' => 'How many image revisions to return',
201201 'start' => 'Timestamp to start listing from',
202202 'end' => 'Timestamp to stop listing at',
203 - '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.',
 203+ 'urlwidth' => array('If iiprop=url is set, a URL to an image scaled to this width will be returned.',
 204+ 'Only the current version of the image can be scaled.'),
204205 'urlheight' => 'Similar to iiurlwidth. Cannot be used without iiurlwidth',
205206 );
206207 }
Index: trunk/phase3/includes/api/ApiQueryBacklinks.php
@@ -29,7 +29,7 @@
3030 }
3131
3232 /**
33 - * This is three-in-one module to query:
 33+ * This is a three-in-one module to query:
3434 * * backlinks - links pointing to the given page,
3535 * * embeddedin - what pages transclude the given page within themselves,
3636 * * imageusage - what pages use the given image
Index: trunk/phase3/includes/api/ApiQueryCategoryInfo.php
@@ -29,7 +29,7 @@
3030 }
3131
3232 /**
33 - * This query adds <images> subelement to all pages with the list of images embedded into those pages.
 33+ * This query adds <categories> subelement to all pages with the list of images embedded into those pages.
3434 *
3535 * @ingroup API
3636 */
Index: trunk/phase3/includes/api/ApiQueryAllmessages.php
@@ -108,8 +108,8 @@
109109 public function getParamDescription() {
110110 return array (
111111 'messages' => 'Which messages to output. "*" means all messages',
112 - 'filter' => 'Return only messages that contains specified string',
113 - 'lang' => 'Language code',
 112+ 'filter' => 'Return only messages that contain this string',
 113+ 'lang' => 'Return messages in this language',
114114 );
115115 }
116116

Status & tagging log