Module:Video game reviews/sandbox: Difference between revisions

Content deleted Content added
Jackmcbarn (talk | contribs)
rm unnecessary HtmlBuilder call
Jackmcbarn (talk | contribs)
reduce variable scope in awards and rm redundancy in HtmlBuilder usage
Line 412:
end
 
function awardappendAwardRow(tbl, awardnum)
local temp = tbl.tag('tr')
.tag('td')
.css('font-weight','bold')
Line 422:
.css('background-color','#f2f2f2')
.wikitext(args['award' .. awardnum])
.done()
return temp
end
 
function awards(args, awardnums)
if args['award1'] then
local Cell = HtmlBuilder.create('table')
Line 443 ⟶ 441:
.css('border-top', 'none')
.wikitext('Awards')
.done()
Cell
.tag('tr')
Line 449 ⟶ 446:
.tag('th').wikitext('Award')
 
for i_, awardnumv in ipairs(awardnums) do
local awardRow = awardappendAwardRow(Cell, awardnumv)
awardRow
.done()
end
return Cell
Line 516 ⟶ 511:
.tag('tr')
.tag('td')
.node(awards(args, awardnums))
.done()
else