Content deleted Content added
Jackmcbarn (talk | contribs) combine the reviewer and aggregator loops |
Jackmcbarn (talk | contribs) better variable names |
||
Line 68:
end
local function reviews(
local arg_system
local tbl2
if (#
tbl2 = HtmlBuilder.create('table')
.addClass('infobox wikitable')
Line 80:
.css('margin', '0em')
.done()
elseif (#
tbl2 = HtmlBuilder.create('table')
.addClass('infobox wikitable')
Line 91:
.done()
end
if #
tbl2.tag('tr').tag('th')
.attr('colspan', #system + 1)
Line 118:
end
end
elseif #
tbl2.tag('tr').tag('th')
.attr('colspan', '2')
Line 140:
if platforms >= 1 then
for i = 1, #reviewer do
for k = 1, #
if reviewer[i][2] ==
local forloop = tbl2.tag('tr')
forloop.tag('td')
Line 190:
end
end
if (#
tbl2
.tag('tr')
Line 218:
end
end
elseif (#
tbl2
.tag('tr')
Line 228:
end
for i = 1, #aggregator do
for k = 1, #
if aggregator[i][2] ==
local forloop = tbl2.tag('tr')
forloop.tag('td')
Line 254:
end
elseif platforms == 0 then
if #
tbl2
.tag('tr')
Line 274:
end
for i = 1, #aggregator do
for k = 1, #
if aggregator[i][2] ==
tbl2
.tag('tr')
Line 305:
end
end
if #
tbl2.tag('tr').tag('th')
.attr('colspan', #system + 1)
Line 324:
for i = 1, #reviewer do
for k = 1, #
if reviewer[i][2] ==
tbl2
.tag('tr')
Line 402:
end
local function renderMainTable(
local tbl
if args['award1'] or ((#
if platforms == 0 then
-- Width: 20% Seems better since it scales with the article size.
Line 462:
.tag('tr')
.tag('td')
.node(reviews(
tbl
Line 480:
function p._reviewbox(args)
local
local sortedArgKeys = {}
Line 504:
seen[halfarg] = true
if data.reviewers[halfarg] then
table.insert(
elseif data.aggregators[halfarg] then
table.insert(
end
end
Line 515:
if not argKey:find('_') then
if data.reviewers[argKey] then
table.insert(
elseif data.aggregators[argKey] then
table.insert(
end
end
end
end
return renderMainTable(
end
|