Module:Video game reviews/sandbox: Difference between revisions

Content deleted Content added
Jackmcbarn (talk | contribs)
reduce variable scope in awards and rm redundancy in HtmlBuilder usage
Jackmcbarn (talk | contribs)
rm unnecessary uses of .done()
Line 82:
titleCell
.wikitext(args.title)
.done()
else
titleCell
.addClass('Reception')
.wikitext('Reception')
.done()
end
 
Line 96 ⟶ 94:
.css('font-size', '120%')
.wikitext(args.subtitle)
.done()
end
end
Line 129 ⟶ 126:
.css('font-size', '120%')
.wikitext('Review scores')
.done()
 
tbl2
Line 145 ⟶ 141:
.css('vertical-align', 'middle')
.wikitext('Score')
.done()
local forloop = tbl2.tag('tr')
for j = 1, #system do
Line 158 ⟶ 153:
.css('font-size', '120%')
.wikitext('Review scores')
.done()
 
tbl2
Line 172 ⟶ 166:
.css('vertical-align', 'middle')
.wikitext('Score')
.done()
end
if platforms >= 1 then
Line 182 ⟶ 175:
.css('vertical-align','middle')
.wikitext(reviewer[i][1])
.done()
 
for j = 1, #system do
Line 197 ⟶ 189:
.addClass('table-na')
.wikitext('N/A')
.done()
elseif string.lower(tostring(args[tostring(system[j][2])])) == 'true' then
forloop.tag('td').done()
end
end
Line 215 ⟶ 206:
.css('vertical-align','middle')
.wikitext(tostring(args[temp]))
.done()
elseif string.lower(tostring(args[tostring(system[j][2])])) == 'true' and string.lower(tostring(args['na'])) == 'true' then
forloop.tag('td')
Line 223 ⟶ 213:
.addClass('table-na')
.wikitext('N/A')
.done()
elseif string.lower(tostring(args[tostring(system[j][2])])) == 'true' then
forloop.tag('td').done()
end
end
Line 238 ⟶ 227:
.css('font-size', '120%')
.wikitext('Aggregate scores')
.done()
tbl2
.tag('tr')
Line 253 ⟶ 241:
.css('vertical-align', 'middle')
.wikitext('Score')
.done()
local forloop = tbl2.tag('tr')
for j = 1, #system do
Line 268 ⟶ 255:
.css('font-size', '120%')
.wikitext('Aggregate scores')
.done()
end
for i = 1, #aggregator do
Line 277 ⟶ 263:
.css('vertical-align','middle')
.wikitext(aggregator[i][1])
.done()
 
for j = 1, #system do
Line 290 ⟶ 275:
.addClass('table-na')
.wikitext('N/A')
.done()
elseif string.lower(tostring(args[tostring(system[j][2])])) == 'true' then
forloop.tag('td').done()
end
end
Line 317 ⟶ 301:
.css('background', '#e8f4f8')
.wikitext('Score')
.done()
end
for i = 1, #aggregator do
Line 333 ⟶ 316:
.css('font-size', '110%')
.wikitext(tostring(args[tostring(aggregator[i][2])]))
.done()
end
end
Line 350 ⟶ 332:
.css('font-size', '110%')
.wikitext(tostring(args['agg'.. tostring(i) .. 'Score']))
.done()
end
end
Line 359 ⟶ 340:
.css('font-size', '120%')
.wikitext('Review scores')
.done()
tbl2
.tag('tr')
Line 371 ⟶ 351:
.css('background', '#e8f4f8')
.wikitext('Score')
.done()
 
for i = 1, #reviewer do
Line 387 ⟶ 366:
.css('font-size', '110%')
.wikitext(tostring(args[tostring(reviewer[i][2])]))
.done()
end
end
Line 404 ⟶ 382:
.css('font-size', '110%')
.wikitext(tostring(args['rev'.. tostring(i) .. 'Score']))
.done()
end
end
Line 506 ⟶ 483:
.tag('td')
.node(reviews())
.done()
 
tbl
Line 512 ⟶ 488:
.tag('td')
.node(awards(args, awardnums))
.done()
else
category = categoryHandler{