Content deleted Content added
this should just be tidying |
|||
Line 91:
:wikitext(data.i18n.score)
:done()
for _, v in ipairs(activeSystems) do
builder:tag('th')
Line 114:
local function renderRatingsBySystem(builder, code, name, activeSystems, args, na)
builder = builder:tag('tr')
for _, v in ipairs(activeSystems) do
Line 252 ⟶ 251:
:done()
end
builder:done()
builder:done() end
Line 260:
builder:tag('div')
:addClass(data.i18n.class.wikidata)
:addClass(
-- TODO: I think getUpdateLink can be made const in the other module.
:wikitext(data.i18n.editOnWikidata .. vgwd.getUpdateLink('nosub'))
Line 294:
local function render(providedReviewers, providedAggregators, awardKeys,
activeSystems, customAggregatorKeys, customReviewerKeys, args, wikidata)
local is_collapsible = args.title and args.state and
local div = mw.html.create('div')
:addClass(data.i18n.class.container)
:addClass((is_collapsible and args.state == 'collapsed') and 'mw-collapsed' or nil)
▲ div:addClass(data.i18n.class.containerleft)
▲ div:addClass(data.i18n.class.containernone)
:css('width', #activeSystems == 0 and args.width or nil)
▲ div:addClass(data.i18n.class.containersingle)
▲ :css('width', args.width or nil)
▲ or args.state == 'collapsed' or args.state == 'expanded') then
▲ div:addClass('mw-collapsible')
▲ elseif args.state == 'autocollapse' or args.state == 'expanded' then
renderTitles(div, args.title, args.subtitle)
|