MediaWiki:Api-stylesheets/TopReviewers.xsl

      



        Review statistics <link rev="made" href="http://en.wikinews.org/wiki/User:Bawolff"/> <xsl:text> ul#graph {height:407px; position:relative; background: #DDD;list-style:none;border: 2px solid grey;} width:60px; z-index: 3;margin-bottom: -2.7em; padding:5px; text-align:center;overflow-x:hidden}
 * 1) graph ul {list-style:none;}
 * 2) graph li {position: absolute; bottom: 0;

</xsl:text> Top reviewers on <a href="http://en.wikinews.org/">EN Wikinews</a> for last <xsl:value-of select="$articleCount"/> articles (from <xsl:value-of select="/api/query/logevents/item[1]/@timestamp"/> to <xsl:value-of select="/api/query/logevents/item[last]/@timestamp"/>) by number of articles ed per user. <ul id="graph" style="width:{count($userList)*90 - 20}px">
 * 1) graph ul li {background-color:#9D9; z-index:1;margin:0; border: thin outset #9D9}

<xsl:for-each select="$userList"> <xsl:sort select="count(key('users', @user))" data-type="number" order="descending"/> <li style='left:{(position-1)*90}px'><a href="http://en.wikinews.org/w/index.php?title=User:{translate(@user, ' &amp;&quot;&lt;&gt;', '_____')}" title="{translate(@user, '&quot;&lt;&gt;', '___')}" > <xsl:value-of select="@user"/></a></li> <ul> <li style="height:{(count(key('users', @user)) div $maxReviewed)*395}px; left:{(position-1)*90}px"> <xsl:value-of select="count(key('users', @user))"/> (<xsl:value-of select="round(1000*(count(key('users', @user)) div $articleCount)) div 10"/>%) </li> </ul> </xsl:for-each> </ul>

<form method="GET" action="http://en.wikinews.org/w/api.php"> Fetch statistics from <input type="text" value="{/api/query/logevents/item[1]/@timestamp}" name="lestart" size="21"/> to <input size="21" type="text" value="{/api/query/logevents/item[last]/@timestamp}" name="leend"/> <input type="submit" value="Go"/> (subject to api limits) <input type="hidden" name="action" value="query"/> <input type="hidden" name="list" value="logevents"/> <input type="hidden" name="letype" value="review"/> <input type="hidden" name="leaction" value="review/approve-i"/> <input type="hidden" name="lelimit" value="max"/> <input type="hidden" name="format" value="xml"/> <input type="hidden" name="xslt" value="MediaWiki:Api-stylesheets/TopReviewers.xsl"/> These statistics are generated by an xslt stylesheet developed by <a href="http://en.wikinews.org/wiki/User:Bawolff">User:Bawolff</a>. Based on "CSS Vertical Bar Graphs" design from <a href="http://meyerweb.com/eric/css/edge/bargraph/demo-ie.html">CSS/edge</a>. This counts the number of entries in the <a href="http://en.wikinews.org/wiki/Special:Log/review">review log</a> that look like an article being published and groups it by the user who flagged that revision. This counts articles that were subsequently deleted (such as test articles). This only counts articles sighted by easy peer review. Manually sighted articles don't count. It is possible this is inaccurate. Use at your own risk. XSLT source is available at: <a href="http://en.wikinews.org/w/index.php?title=MediaWiki:Api-stylesheets/TopReviewers.xsl&amp;action=raw">http://en.wikinews.org/w/index.php?title=MediaWiki:Api-stylesheets/TopReviewers.xsl&amp;action=raw</a>. Meant to be accessed via the url <a href="http://en.wikinews.org/w/api.php?action=query&amp;list=logevents&amp;letype=review&amp;lelimit=max&amp;format=xml&amp;xslt=MediaWiki:Api-stylesheets/TopReviewers.xsl&amp;leaction=review/approve-i">http://en.wikinews.org/w/api.php?action=query&amp;list=logevents&amp;letype=review&amp;lelimit=max&amp;format=xml&amp;xslt=MediaWiki:Api-stylesheets/TopReviewers.xsl&amp;leaction=review/approve-i</a> </xsl:template>

</xsl:stylesheet>