-
Notifications
You must be signed in to change notification settings - Fork 0
/
wikiwork.html
186 lines (145 loc) · 5.85 KB
/
wikiwork.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<link rel="stylesheet" href="../style.css" type="text/css" />
<title>WikiWork calculator</title>
<script type="text/javascript">
window.onload = init;
function init()
{
document.forms.stats.fa.onchange = updatetotal;
document.forms.stats.a.onchange = updatetotal;
document.forms.stats.ga.onchange = updatetotal;
document.forms.stats.b.onchange = updatetotal;
document.forms.stats.c.onchange = updatetotal;
document.forms.stats.start.onchange = updatetotal;
document.forms.stats.stub.onchange = updatetotal;
}
function updatetotal()
{
var fa = 0;
var a = 0;
var ga = 0;
var b = 0;
var c = 0;
var start = 0;
var stub = 0;
if (document.forms.stats.fa.value == 0 ) fa = 0;
else fa = document.forms.stats.fa.value;
if (document.forms.stats.a.value == 0) a = 0;
else a = document.forms.stats.a.value;
if ( document.forms.stats.ga.value == 0) ga = 0 ;
else ga = document.forms.stats.ga.value;
if ( document.forms.stats.b.value == 0) b = 0;
else b = document.forms.stats.b.value;
if ( document.forms.stats.c.value == 0) c = 0;
else c = document.forms.stats.c.value;
if (document.forms.stats.start.value == 0) start = 0;
else start = document.forms.stats.start.value;
if (document.forms.stats.stub.value == 0) stub = 0;
else stub = document.forms.stats.stub.value;
fa = parseInt(fa);
a = parseInt(a);
ga = parseInt(ga);
b = parseInt(b);
c = parseInt(c);
start = parseInt(start);
stub = parseInt(stub);
var total = fa + a + ga + b + c + start + stub;
document.forms.stats.total.value = total;
}
</script>
<style type="text/css">
body{ background-image: url(http://www.scott5114.name/headbg.jpg); background-repeat:no-repeat; }
table.wikitable,
table.prettytable {
margin: 1em 1em 1em 0;
background: #f9f9f9;
border: 1px #aaa solid;
border-collapse: collapse;
}
table.wikitable th, table.wikitable td,
table.prettytable th, table.prettytable td {
border: 1px #aaa solid;
padding: 0.2em;
}
table.wikitable th,
table.prettytable th {
background: #f2f2f2;
text-align: center;
}
table.wikitable caption,
table.prettytable caption {
margin-left: inherit;
margin-right: inherit;
font-weight: bold;
}
table.prettytable code,
table.wikitable code {
background-color: transparent;
}
</style>
</head>
<body>
<h1 id="title">WikiWork calculator</h1>
<p>This is a calculator for WikiWork statistics on Wikipedia (or any project that uses a similar rating mechanism). The WikiWork stats are explained in better detail on the <a href="http://en.wikipedia.org/wiki/Wikipedia:WikiProject_U.S._Roads/Assessment/%CF%89">WP:USRD WikiWork page</a>. This tool's <a href="wikiwork.txt">source code</a> is available.</p>
<p>The assessment scale does not take into account lists (either featured or regular), templates, books, categories, or any other type of meta-assessment. The bot-generated tables leave off any assessment level that has no articles assessed as that class; make sure when entering the values that you account for this and put zeroes in the appropriate fields (or leave them blank).</p>
<p>The WikiWork concept predates the time that C-Class was introduced. Version 0.4.0 of this tool was the first to support the new C-Class. Statistics calculated before 23 June 2008 will not match assessments calculated today. (Old statistics will count Starts as if they were Cs and Stubs as if they were Starts.)</p>
<h1>Calculate statistics</h1>
<form id="stats" action="wikiwork.cgi" method="post">
<table class="wikitable" style="text-align: center; float:left;">
<tr>
<th style="text-align: center;">Article class</th>
<th style="text-align: center;">Articles</th>
</tr>
<tr><th style="background: #6699ff; text-align: center;"><img alt="Featured article" src="fa.png"/> FA</th>
<td><input type="text" size="7" name="fa" style="text-align:right;"/></td>
</tr>
<tr>
<th style="background: #66ffff; text-align: center;">A</th>
<td><input type="text" size="7" name="a" style="text-align:right;"/></td>
</tr>
<tr>
<th style="background: #66ff66; text-align: center;"><img alt="Good article" src="ga.png"/> GA</th>
<td><input type="text" size="7" name="ga" style="text-align:right;"/></td>
</tr>
<tr>
<th style="background: #c8fb7b; text-align: center;">B</th>
<td><input type="text" size="7" name="b" style="text-align:right;"/></td>
</tr>
<tr>
<th style="background: #ffff66; text-align: center;">C</th>
<td><input type="text" size="7" name="c" style="text-align:right;"/></td>
</tr>
<tr>
<th style="background: #ffaa66; text-align: center;">Start</th>
<td><input type="text" size="7" name="start" style="text-align:right;"/></td>
</tr>
<tr>
<th style="background: #ff6666; text-align: center;">Stub</th>
<td><input type="text" size="7" name="stub" style="text-align:right;"/></td>
</tr>
<tr>
<th style="background: transparent; text-align: center"><b>Total</b></th>
<td><input type="text" size="7" name="total" style="background: transparent; text-align:right; font-weight:bold; border:0;" readonly></td>
</tr>
</table>
<br clear="both"/>
<h2>Optional information</h2>
<ul>
<li>Number of editors
<input type="text" size="7" name="eds" style="text-align:right;"/></li>
<li>Number of subprojects
<input type="text" size="7" name="subs" style="text-align:right;"/></li>
</ul>
<p style="text-align:right;"><input type="submit" value="Calculate"/></p>
</form>
<h1>Meta info</h1>
<p>This is version 0.4.1 of the calculator posted 2010-04-01.</p>
<p style="font-size:90%">Copyright (C) 2007–2010 Scott V. Nazelrod (Scott5114), hosted by Rschen7754<br/>
This program comes with ABSOLUTELY NO WARRANTY.<br/>
This is <a href="http://en.wikipedia.org/wiki/Free_software">free software</a>, and you are welcome to redistribute it
under the <a href="http://www.gnu.org/licenses/">GNU GPL version 3.0</a>
or (at your option) any later version.</p>
</body></html>