Content deleted Content added
poke |
poke |
||
Line 28:
end
local function category_count(
return tonumber(frame:callParserFunction(
'PAGESINCATEGORY',
'R'
))
Line 56:
local classes = {
{count = 0, class = 'List', category = 'List-Class'},
{count = 0, class = 'Stub', category = 'Stub-Class'},
{count = 0, class = 'Start', category = 'Start-Class'},
{count = 0, class = 'C', category = 'C-Class'},
{count = 0, class = 'B', category = 'B-Class'},
{count = 0, class = 'GA', category = 'GA-Class'},
{count = 0, class = 'A', category = 'A-Class'},
{count = 0, class = 'FA', category = 'FA-Class'}
}
local project_classes = {
{count = 0, class = 'FL', category = 'FL-Class'},
{count = 0, class = 'Unassessed', category = 'Unassessed'}
}
Line 75:
for i, class in pairs(classes) do
if project then
class[
if class[
class[
project_classes[1][
project,
frame
Line 84:
end
elseif args[i] then
class[
end
sum_classes = sum_classes + class[
end
Line 92:
if project then
divisor = sum_classes + category_count(
project_classes[2][
project,
frame
Line 105:
for i, class in pairs(classes) do
if class[
local percentage = class_percent(class[
root:newline()
:tag('td')
:css('background', frame:expandTemplate{
title = 'class/colour', args = { class[
)
:css('width', percentage)
:tag('span')
:wikitext(percentage .. " " .. class[
:done()
:done()
|