r114537 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r114536‎ | r114537 | r114538 >
Date:19:00, 27 March 2012
Author:raindrift
Status:deferred
Tags:
Comment:
added author information, no links yet.
Modified paths:
  • /trunk/extensions/PageTriage/PageTriage.i18n.php (modified) (history)
  • /trunk/extensions/PageTriage/PageTriage.php (modified) (history)
  • /trunk/extensions/PageTriage/SpecialPageTriage.php (modified) (history)
  • /trunk/extensions/PageTriage/modules/ext.pageTriage.views/ext.pageTriage.articleListItem.css (modified) (history)

Diff [purge]

Index: trunk/extensions/PageTriage/SpecialPageTriage.php
@@ -116,7 +116,30 @@
117117 </span>
118118 </div>
119119 <div class="mwe-pt-author">
120 - Author info goes here...
 120+ <% if( typeof( user_name ) != 'undefined' ) { %>
 121+ <%= gM( 'pagetriage-byline', user_name ) %>
 122+ <span class="mwe-pt-talk-contribs">(talk &#xb7; contribs)</span>
 123+ &#xb7;
 124+ <%= gM( 'pagetriage-editcount', user_editcount, user_creation_date ) %>
 125+ <% if( user_bot == "1" ) { %>
 126+ &#xb7;
 127+ <%= gM( 'pagetriage-author-bot' ) %>
 128+ <% } %>
 129+ <% if( user_autoconfirmed == "0" ) { %>
 130+ &#xb7;
 131+ <span class="mwe-pt-metadata-warning">
 132+ <%= gM( 'pagetriage-author-not-autoconfirmed' ) %>
 133+ </span>
 134+ <% } %>
 135+ <% if( user_block_status == "1" ) { %>
 136+ &#xb7;
 137+ <span class="mwe-pt-metadata-warning">
 138+ <%= gM( 'pagetriage-author-blocked' ) %>
 139+ </span>
 140+ <% } %>
 141+ <% } else { %>
 142+ <%= gM('pagetriage-no-author') %>
 143+ <% } %>
121144 </div>
122145 <div class="mwe-pt-snippet">
123146 <%= snippet %>
Index: trunk/extensions/PageTriage/modules/ext.pageTriage.views/ext.pageTriage.articleListItem.css
@@ -58,6 +58,10 @@
5959 .mwe-pt-author {
6060 }
6161
 62+.mwe-pt-talk-contribs {
 63+ font-size: 0.8em;
 64+}
 65+
6266 /* the article snippet */
6367 .mwe-pt-snippet {
6468 color: #bebebe;
Index: trunk/extensions/PageTriage/PageTriage.i18n.php
@@ -22,6 +22,12 @@
2323 'pagetriage-categories' => '$1 {{PLURAL:$1|category|categories}}',
2424 'pagetriage-no-categories' => 'No categories',
2525 'pagetriage-orphan' => 'Orphan',
 26+ 'pagetriage-no-author' => 'No author information present',
 27+ 'pagetriage-byline' => 'By $1',
 28+ 'pagetriage-editcount' => '$1 edits since $2',
 29+ 'pagetriage-author-not-autoconfirmed' => 'Non-autoconfirmed',
 30+ 'pagetriage-author-blocked' => 'Blocked',
 31+ 'pagetriage-author-bot' => 'Bot',
2632 );
2733
2834 /**
@@ -37,4 +43,12 @@
3844 'pagetriage-categories' => 'The number of categories in the article',
3945 'pagetriage-no-categories' => 'Label indicating an article with no categories',
4046 'pagetriage-orphan' => 'Label indicating an article has no external links (orphan)',
 47+ 'pagetriage-no-author' => 'Error message for missing article author information',
 48+ 'pagetriage-byline' => 'Text indicating the article author. $1 is the author username',
 49+ 'pagetriage-editcount' => 'Display of article author\'s editing experience. $1 is total edit count, $2 is author\'s join date',
 50+ 'pagetriage-author-not-autoconfirmed' => 'String indicating that the author was not yet autoconfirmed when the article was last edited',
 51+ 'pagetriage-author-blocked' => 'String indicating that the author was blocked when the article was last edited',
 52+ 'pagetriage-author-bot' => 'String indicating that the author is a bot',
 53+
 54+
4155 );
Index: trunk/extensions/PageTriage/PageTriage.php
@@ -157,6 +157,13 @@
158158 'pagetriage-no-categories',
159159 'pagetriage-images',
160160 'pagetriage-orphan',
 161+ 'pagetriage-no-author',
 162+ 'pagetriage-byline',
 163+ 'pagetriage-editcount',
 164+ 'pagetriage-author-not-autoconfirmed',
 165+ 'pagetriage-author-blocked',
 166+ 'pagetriage-author-bot',
 167+
161168 )
162169 );
163170

Status & tagging log