r86739 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r86738‎ | r86739 | r86740 >
Date:21:09, 22 April 2011
Author:tparscal
Status:ok (Comments)
Tags:
Comment:
Added comments and change the output examples to better reflect specifications.
Modified paths:
  • /trunk/extensions/ArticleFeedback/SpecialArticleFeedback.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ArticleFeedback/SpecialArticleFeedback.php
@@ -43,8 +43,10 @@
4444 return array(
4545 array(
4646 'title' => 'Main Page',
47 - 'ratings' => array( 4, 3, 2, 1 ),
48 - 'all' => 2.5
 47+ // List of ratings as the currently stand
 48+ 'values' => array( 4, 3, 2, 1 ),
 49+ // Current average (considering historic averages of each rating)
 50+ 'average' => 1.925
4951 )
5052 );
5153 }
@@ -62,8 +64,8 @@
6365 return array(
6466 array(
6567 'title' => 'Main Page',
66 - 'ratings' => array( 4, 3, 2, 1 ),
67 - 'average' => 2.5
 68+ // List of differences for each rating in the past 7 days
 69+ 'differnces' => array( 1, -2, 0, 0 ),
6870 )
6971 );
7072 }
@@ -81,8 +83,8 @@
8284 return array(
8385 array(
8486 'title' => 'Main Page',
85 - 'ratings' => array( 4, 3, 2, 1 ),
86 - 'average' => 2.5
 87+ // List of rating IDs that qualify as recent lows
 88+ 'lows' => array( 0, 3 ),
8789 )
8890 );
8991 }

Follow-up revisions

RevisionCommit summaryAuthorDate
r86753* Remove local mw>mediaWiki aliasing....krinkle11:09, 23 April 2011

Comments

#Comment by Krinkle (talk | contribs)   10:20, 23 April 2011
'differnces' => array( ..

little typo there.

Status & tagging log