Module:Video game reviews/sandbox: Difference between revisions

Content deleted Content added
fix
more building
Line 262:
end
 
local function renderEditOnWikidata(builder, wikidata, state)
if not wikidata then return end
divbuilder:tag('div')
:addClass(data.i18n.class.wikidata)
-- TODO: I think getUpdateLink can be made const in the other module.
:wikitext(data.i18n.editOnWikidata .. vgwd.getUpdateLink('nosub'))
if state then divbuilder:addClass('mw-collapsible-content') end
divbuilder:done()
end
 
local function categorizePlatformCount(builder, platformCount)
if platformCount ~= 0 then
divbuilder:wikitext(data.i18n.multiplatformCategory)
else
divbuilder:wikitext(data.i18n.singleplatformCategory)
end
end
Line 356:
reviewerCount + aggregatorCount
)
renderEditOnWikidata(div, wikidata, args.state)
categorizePlatformCount(div, activeSystems)
return div