Module:Video game reviews/sandbox: Difference between revisions

Content deleted Content added
Jackmcbarn (talk | contribs)
reduce scope of args
Jackmcbarn (talk | contribs)
avoid passing entire table to renderTitleRow
Line 56:
end
 
local function renderTitleRow(tbl, argsplain, title, subtitle)
local titleCell = tbl.tag('tr').tag('th').css('font-size', '120%')
 
if args.state == 'plain' then
titleCell
.tag('span')
Line 66:
end
 
if args.title then
titleCell
.wikitext(args.title)
else
titleCell
Line 75:
end
 
if args.subtitle then
tbl
.tag('tr')
.tag('th')
.css('font-size', '120%')
.wikitext(args.subtitle)
end
end
Line 464:
tbl.css('float', args.align or 'right').css('clear', args.align or 'right')
 
renderTitleRow(tbl, args.state == 'plain', args.title, args.subtitle)
 
tbl