{* $Id: wikiplugin_groupstat.tpl 36838 2011-09-02 21:56:43Z chealer $ *}
<table class="normal">
<tr>
<th>{tr}Group Name{/tr}</th>
<th>{tr}Number of Users{/tr}</th>
<th>{tr}Percentage of Total{/tr}</th>
</tr>
{cycle values="even,odd" print=false}
{foreach from=$stats item=stat}
	{if $stat.group ne 'Anonymous' and $stat.group ne 'Registered'}
		<tr class="{cycle}">
		<td>{$stat.group|escape}</td>
		<td>{$stat.nb}</td>
		<td>
			{if $params.show_bar eq 'y'}
				{if !empty($stat.percent)}
					{quotabar length=$stat.percent}
				{/if}
			{else}
				{$stat.percent|string_format:"%.2f"}%
			{/if}
		</td>
		</tr>
	{/if}
{/foreach}
</table>
