<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

<head>
        <title><sf:markup id="channel" /> stats</title>
        <link rel="stylesheet" href="sf.css" type="text/css" />
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>

<body>

<h2>Stats for <sf:markup id="channel" /></h2>

<div class="section">
    <p>
        These are the statistics for <sf:markup id="channel" />
        <sf:markup id="timeframe" />.
        Do you think you could make a better-looking page than this one?
        Download <a href="template.xml">the template</a> and
        <a href="sf.css">the CSS file</a> and go for it!
    </p>
    <p>
        These statistics were generated on:
        <sf:dt_weekday />, <sf:dt_month /> <sf:dt_month_day />, <sf:dt_year />
        at <sf:dt_hour />:<sf:dt_minute />:<sf:dt_second />
    </p>
</div>

<div class="section">
        <h3>Activity histogram:</h3>
        <table class="histo">
                <tr class="bars">
                <td></td>
                <sf:time_histogram>
                        <td><img src="blue-h.png" height="sf:lines / 100" width="10" alt="sf:lines" /></td>
                </sf:time_histogram>
                </tr>
                <tr>
                <td>Hour</td>
                <sf:time_histogram>
                        <td><sf:hour /></td>
                </sf:time_histogram>
                </tr>
                <tr>
                <td>Lines</td>
                <sf:time_histogram>
                        <td><sf:calc>( <sf:lines /> / ( <sf:total_lines_spoken /> + <sf:total_lines_acted /> ) ) * 100</sf:calc>%</td>
                </sf:time_histogram>
                </tr>
        </table>
</div>

<div class="section">
    <h3>Grand Totals</h3>
    <table>
        <thead>
        <tr>
            <td colspan="3">Spoken</td>
            <td colspan="3">Acted</td>
            <td colspan="3">Total</td>
        </tr>
        <tr>
            <td>Lines</td>
            <td>Words</td>
            <td>Characters</td>
            <td>Lines</td>
            <td>Words</td>
            <td>Characters</td>
            <td>Lines</td>
            <td>Words</td>
            <td>Characters</td>
        </tr>
        </thead>
        <tbody>
        <tr>
            <td><sf:total_lines_spoken /></td>
            <td><sf:total_words_spoken /></td>
            <td><sf:total_chars_spoken /></td>
            <td><sf:total_lines_acted /></td>
            <td><sf:total_words_acted /></td>
            <td><sf:total_chars_acted /></td>
            <td><sf:calc><sf:total_lines_spoken /> + <sf:total_lines_acted /></sf:calc></td>
            <td><sf:calc><sf:total_words_spoken /> + <sf:total_words_acted /></sf:calc></td>
            <td><sf:calc><sf:total_chars_spoken /> + <sf:total_chars_acted /></sf:calc></td>
        </tr>
        </tbody>
    </table>
</div>

<div class="section">

    <h3>General Statistics for users:</h3>
    
    <sf:general_counts_user sortkey="sf:words_spoken + sf:words_acted" sortorder="d" maxrecords="30">
        <div class="record">
            <span class="name"><sf:index />&nbsp;<sf:user /></span><br />
            <table class="clear"><tr>
            <td><sf:user_markup /></td>
            <td><table>
                <thead><tr>
                    <td>Type</td><td>Lines</td><td>Words</td><td>Characters</td>
                </tr></thead>
                <tbody>
                    <tr><td>Spoken</td><td><sf:lines_spoken /></td><td><sf:words_spoken /></td><td><sf:chars_spoken /></td></tr>
                    <tr><td>Acted</td><td><sf:lines_acted /></td><td><sf:words_acted /></td><td><sf:chars_acted /></td></tr>
                    <tr>
                        <td>Total</td>
                        <td><sf:calc><sf:lines_spoken /> + <sf:lines_acted /></sf:calc></td>
                        <td><sf:calc><sf:words_spoken /> + <sf:words_acted /></sf:calc></td>
                        <td><sf:calc><sf:chars_spoken /> + <sf:chars_acted /></sf:calc></td>
                    </tr>
                </tbody>
            </table></td>
            <td>
                Words per line: <sf:calc>(<sf:words_spoken /> + <sf:words_acted />) / (<sf:lines_spoken /> + <sf:lines_acted />)</sf:calc><br />
                Characters per line: <sf:calc>(<sf:chars_spoken /> + <sf:chars_acted />) / (<sf:lines_spoken /> + <sf:lines_acted />)</sf:calc><br />
                % acting: <sf:calc><sf:lines_acted /> / (<sf:lines_spoken /> + <sf:lines_acted />) * 100</sf:calc>%<br />
            </td>
            </tr></table>
            Random quote: <sf:quote />
        </div>
    </sf:general_counts_user>
    
    <h4>Most and Least words per line</h4>
        <table>
            <thead><tr>
                <td>Rank</td>
                <td>User</td>
                <td>Words per line</td>
            </tr></thead>
            <tbody>
                <sf:general_counts_user
                    sortkey="(sf:words_spoken + sf:words_acted) / (sf:lines_spoken + sf:lines_acted)"
                    maxrecords="5"><tr>
                       <td class="rank"><sf:index /></td>
                       <td><sf:user /></td>
                       <td><sf:calc>(<sf:words_spoken /> + <sf:words_acted />) / (<sf:lines_spoken /> + <sf:lines_acted />)</sf:calc></td>
                </tr></sf:general_counts_user>
                <tr><td></td><td></td><td></td></tr>
                <sf:general_counts_user
                    sortkey="(sf:words_spoken + sf:words_acted) / (sf:lines_spoken + sf:lines_acted)"
                    sortorder="a"
                    maxrecords="5"><tr>
                       <td class="rank"><sf:index /></td>
                       <td><sf:user /></td>
                       <td><sf:calc>(<sf:words_spoken /> + <sf:words_acted />) / (<sf:lines_spoken /> + <sf:lines_acted />)</sf:calc></td>
                </tr></sf:general_counts_user>
            </tbody>
        </table>
</div>

<div class="section">
        <h3>General Statistics for nicks:</h3>
        <table>
                <thead>
                        <tr>
                                <td colspan="2"></td>
                                <td colspan="3">Spoken</td>
                                <td colspan="3">Acted</td>
                                <td colspan="3">Total</td>
                        </tr>
                        <tr>
                <td>Rank</td>
                                <td>Nick</td>
                                <td>Lines</td>
                                <td>Words</td>
                                <td>Characters</td>
                                <td>Lines</td>
                                <td>Words</td>
                                <td>Characters</td>
                                <td>Lines</td>
                                <td>Words</td>
                                <td>Characters</td>
                        </tr>
                </thead>
                <tbody>
                <sf:general_counts_nick sortkey="sf:words_spoken + sf:words_acted" sortorder="d" maxrecords="30"><tr>
            <td class="rank"><sf:index /></td>
                    <td><sf:nick /></td>
                        <td><sf:lines_spoken /></td>
                        <td><sf:words_spoken /></td>
                        <td><sf:chars_spoken /></td>
                        <td><sf:lines_acted /></td>
                        <td><sf:words_acted /></td>
                        <td><sf:chars_acted /></td>
                        <td><sf:calc><sf:lines_spoken /> + <sf:lines_acted /></sf:calc></td>
                        <td><sf:calc><sf:words_spoken /> + <sf:words_acted /></sf:calc></td>
                        <td><sf:calc><sf:chars_spoken /> + <sf:chars_acted /></sf:calc></td>
                </tr></sf:general_counts_nick>
                </tbody>
        </table>
</div>

<div class="section">
        <h3>Alternate nicknames:</h3>
        <table>
                <thead><tr>
            <td>Rank</td>
                        <td>User</td>
                        <td>Number<br />of Alts</td>
                        <td>Alternate Nicknames</td>
                </tr></thead>
                <tbody>
                <sf:alternate_nicks maxrecords="20" sortkey="sf:num_alts"><tr>
            <td class="rank" valign="top"><sf:index /></td>
                        <td valign="top"><sf:user /></td>
                        <td valign="top"><sf:num_alts /></td>
                        <td><sf:alts><sf:alt> </sf:alt></sf:alts></td>
                </tr></sf:alternate_nicks>
                </tbody>
        </table>
</div>

<div class="section">
        <h3>Specific line counts:</h3>
        <sf:line_counter>
                <div class="subsection">
                        <h4><sf:description />:</h4>
                        <table>
                        <thead><tr>
                            <td>Rank</td>
                            <td>User</td>
                            <td>Count</td>
                            <td>Last Occurence</td>
                        </tr></thead>
                        <tbody>
                                <sf:data_record><tr>
                                        <td class="rank"><sf:index /></td>
                                        <td><sf:user /></td>
                                        <td><sf:value /></td>
                                        <td><sf:example /></td>
                                </tr></sf:data_record>
                        </tbody>
                        </table>
                </div>
        </sf:line_counter>
</div>

<div class="section">
        <h3>Context counts:</h3>
        <sf:context_counter>
                <div class="subsection">
                        <h4><sf:description />:</h4>
                        <table>
                                <sf:data_record><tr>
                                        <td class="rank"><sf:index /></td>
                                        <td><sf:object /></td>
                                        <td><sf:count /></td>
                                </tr></sf:data_record>
                        </table>
                </div>
        </sf:context_counter>
</div>

<div class="section">
        <h3>Specific word counts:</h3>
        <sf:word_counter>
                <div class="subsection">
                        <h4><sf:description />:</h4>
                        <table>
                        <thead><tr>
                            <td>Rank</td>
                            <td>User</td>
                            <td>Count</td>
                            <td>Last Occurence</td>
                        </tr></thead>
                        <tbody>
                                <sf:data_record><tr>
                                        <td class="rank"><sf:index /></td>
                                        <td><sf:user /></td>
                                        <td><sf:value /></td>
                                        <td><sf:example /></td>
                                </tr></sf:data_record>
                        </tbody>
                        </table>
                </div>
        </sf:word_counter>
</div>

<div class="section">
        <h3>General Word Counts:</h3>
        <table>
                <sf:word_count maxrecords="30"><tr>
                        <td class="rank"><sf:index /></td>
                        <td><sf:word /></td>
                        <td><sf:count /></td>
                </tr></sf:word_count>
        </table>
</div>

<div class="section">
        <h3>User References:</h3>
        <table>
                <sf:user_references sortkey="sf:count" sortorder="d" maxrecords="10"><tr>
            <td class="rank"><sf:index /></td>
                        <td><sf:user /></td>
                        <td><sf:count /></td>
                </tr></sf:user_references>
        </table>
</div>

<div class="footer">
        These statistics generated by <a href="http://www.catholicinfo.ca/statfreak">StatFreak</a>.<br />
        <a href="http://validator.w3.org/check/referer"><img
           src="http://www.w3.org/Icons/valid-xhtml11"
           alt="Valid XHTML 1.1!" height="31" width="88" /></a>
        <a href="http://jigsaw.w3.org/css-validator/check/referer"><img
           style="border:0;width:88px;height:31px"
           src="http://jigsaw.w3.org/css-validator/images/vcss"
           alt="Valid CSS!" /></a>
        <a href="http://sourceforge.net"><img
            src="http://sourceforge.net/sflogo.php?group_id=1204&amp;type=1"
            width="88" height="31" alt="SourceForge.net Logo" /></a>

</div>

</body>

</html>