Module:Video game reviews/sandbox: Difference between revisions

Content deleted Content added
Undid revision 993346459 by Izno (talk) nope, that one broke it, lets not revert all the way though
add wikitable; and nil is fun
Line 152:
builder = builder:tag('table')
:addClass(data.i18n.class.aggregators)
:addClass(data.i18n.class.wikitable)
:addClass(args.state and 'mw-collapsible-content' or nil)
:tag('caption')
Line 190 ⟶ 191:
builder = builder:tag('table')
:addClass(data.i18n.class.reviews)
:addClass(data.i18n.class.wikitable)
:addClass(args.state and 'mw-collapsible-content' or nil)
:tag('caption')
Line 227 ⟶ 229:
builder = builder:tag('table')
:addClass(data.i18n.class.awards)
:addClass(data.i18n.class.wikitable)
:addClass(args.state and 'mw-collapsible-content' or nil)
:tag('caption')
Line 295 ⟶ 298:
activeSystems, customAggregatorKeys, customReviewerKeys, args, wikidata)
local is_collapsible = args.title and args.state and
(args.state == 'autocollapse' or argsdata.i18n.state == 'collapsed'.autocollapse or args.state == 'expanded')
args.state == data.i18n.state.collapsed or
args.state == data.i18n.expanded
)
local div = mw.html.create('div')
:addClass(data.i18n.class.container)
:addClass(#activeSystems == 0 and data.i18n.class.containersingle or nil)
:addClass(args.align == data.i18n.align.left and data.i18n.class.containerleft or nil)
:addClass(args.align == data.i18n.align.none and data.i18n.class.containernone or nil)
:addClass(#activeSystems == 0 and data.i18n.class.containersingle or nil)
:addClass(is_collapsible and 'mw-collapsible' or nil)
:addClass((is_collapsible and args.state == 'data.i18n.state.collapsed') and 'mw-collapsed' or nil)
:addClass((is_collapsible and (args.state == 'data.i18n.state.autocollapse' orand args.state ==or 'expanded')nil)
and args.state or nil)
:css('width', #activeSystems == 0 and args.width or nil)