Module:Dot chart/sandbox: Difference between revisions

Content deleted Content added
Sync with live
Don't add border:none to improve compatibility with skin dark mode CSS
 
(9 intermediate revisions by 2 users not shown)
Line 257:
:wikitext(p.data(frame))
div -- Creates box
:css('width', args["width"] or '240px')
:css('display', 'inline-block')
:css('float', args["align"] or 'right')
:css('margin', args["margin"] or '2px')
:css('padding', args["padding"] or table.concat({size/2,'px'}))
:css('background',args["color"] or 'none')
:wikitext(tostring(top))
:wikitext(tostring(container))
:wikitext(legend(args))
:wikitext(args["bottom"])
if args["color"] then
div:css('background', args["color"] or 'none')
end
if yesno(args['border']) ~= false then -- Creates box border