r29231 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r29230‎ | r29231 | r29232 >
Date:19:28, 3 January 2008
Author:tbleher
Status:old
Tags:
Comment:
Small documentation and whitespace fixes
Modified paths:
  • /trunk/phase3/includes/Linker.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Linker.php
@@ -318,7 +318,7 @@
319319 /**
320320 * Make a red link to the edit page of a given title.
321321 *
322 - * @param $title String: The text of the title
 322+ * @param $nt Title object of the target page
323323 * @param $text String: Link text
324324 * @param $query String: Optional query part
325325 * @param $trail String: Optional trail. Alphabetic characters at the start of this string will
@@ -360,7 +360,7 @@
361361 *
362362 * Make a brown link to a short article.
363363 *
364 - * @param $title String: the text of the title
 364+ * @param $nt Title object of the target page
365365 * @param $text String: link text
366366 * @param $query String: optional query part
367367 * @param $trail String: optional trail. Alphabetic characters at the start of this string will
@@ -374,7 +374,7 @@
375375 /**
376376 * Make a coloured link.
377377 *
378 - * @param $title String: the text of the title
 378+ * @param $nt Title object of the target page
379379 * @param $colour Integer: colour of the link
380380 * @param $text String: link text
381381 * @param $query String: optional query part
@@ -490,24 +490,24 @@
491491 * @param Title $title Title object
492492 * @param File $file File object, or false if it doesn't exist
493493 *
494 - * @param array $frameParams Associative array of parameters external to the media handler.
495 - * Boolean parameters are indicated by presence or absence, the value is arbitrary and
496 - * will often be false.
497 - * thumbnail If present, downscale and frame
498 - * manualthumb Image name to use as a thumbnail, instead of automatic scaling
499 - * framed Shows image in original size in a frame
500 - * frameless Downscale but don't frame
501 - * upright If present, tweak default sizes for portrait orientation
502 - * upright_factor Fudge factor for "upright" tweak (default 0.75)
503 - * border If present, show a border around the image
504 - * align Horizontal alignment (left, right, center, none)
505 - * valign Vertical alignment (baseline, sub, super, top, text-top, middle,
506 - * bottom, text-bottom)
507 - * alt Alternate text for image (i.e. alt attribute). Plain text.
508 - * caption HTML for image caption.
 494+ * @param array $frameParams Associative array of parameters external to the media handler.
 495+ * Boolean parameters are indicated by presence or absence, the value is arbitrary and
 496+ * will often be false.
 497+ * thumbnail If present, downscale and frame
 498+ * manualthumb Image name to use as a thumbnail, instead of automatic scaling
 499+ * framed Shows image in original size in a frame
 500+ * frameless Downscale but don't frame
 501+ * upright If present, tweak default sizes for portrait orientation
 502+ * upright_factor Fudge factor for "upright" tweak (default 0.75)
 503+ * border If present, show a border around the image
 504+ * align Horizontal alignment (left, right, center, none)
 505+ * valign Vertical alignment (baseline, sub, super, top, text-top, middle,
 506+ * bottom, text-bottom)
 507+ * alt Alternate text for image (i.e. alt attribute). Plain text.
 508+ * caption HTML for image caption.
509509 *
510 - * @param array $handlerParams Associative array of media handler parameters, to be passed
511 - * to transform(). Typical keys are "width" and "page".
 510+ * @param array $handlerParams Associative array of media handler parameters, to be passed
 511+ * to transform(). Typical keys are "width" and "page".
512512 */
513513 function makeImageLink2( Title $title, $file, $frameParams = array(), $handlerParams = array() ) {
514514 global $wgContLang, $wgUser, $wgThumbLimits, $wgThumbUpright;

Status & tagging log