Content deleted Content added
args.title |
insert mw-collapsible instead |
||
Line 112:
local function renderHeadingRow(builder, mainHeading, nameHeading)
renderMainHeading(builder, 2, mainHeading)
builder:tag('tr')
:tag('th')
:css('background', '#e8f4f8')
:css('text-align', 'center')
:css('vertical-align', 'middle')
:wikitext(nameHeading)
:done()
:tag('th')
:css('background', '#e8f4f8')
:css('vertical-align', 'middle')
:wikitext(data.i18n.score)
:done()
end
Line 157 ⟶ 156:
builder:tag('tr')
:tag('td')
:css('text-align', 'center')
:css('vertical-align', 'middle')
:wikitext(name)
:done()
:tag('td')
:css('text-align', 'center')
:wikitext(rating)
:done()
end
local function renderReviews(builder, providedReviewers, providedAggregators, activeSystems, customAggregatorKeys, customReviewerKeys, args)
builder = builder:tag('table')
local reviewerCount = #providedReviewers + #customReviewerKeys
Line 238 ⟶ 237:
local function renderAwards(builder, args, awardKeys, borderTop)
builder = builder:tag('table')
renderMainHeading(builder, 2, data.i18n[#awardKeys == 1 and 'award' or 'awards'], borderTop)
builder:tag('tr')
for _, v in ipairs(awardKeys) do
builder:tag('tr')
end
builder:done()
Line 289 ⟶ 288:
or args.state == 'collapsed' or args.state == 'expanded') then
div
:addClass('mw-collapsible')
:addClass(args.state)
end
|