Content deleted Content added
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 ==
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
:addClass
:css('width', #activeSystems == 0 and args.width or nil)
|