Module:Dot chart/sandbox: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 8:
--------------------------------------------------------------------------------
 
function p.dotsdata(frame) -- Returns all the data to makeof the dotsgraph
local args = getArgs(frame)
-- Dot related
Line 182:
 
function p.graph(frame) -- Returns a graph with the dots on it
if mw.ustring.match(p.dotsdata(frame),"<span") then -- Return error messages from p.dotsdata
return p.dotsdata(frame)
end
local args = getArgs(frame)
Line 213:
picture = mw.ustring.gsub(picture,'.-:','')
if p.dotsdata(frame) == "" then -- Don't make box if empty
return ""
end
Line 230:
:css('position','relative')
:wikitext('[[File:',picture,'|',args["width"] or '240px',']]')
:wikitext(p.dotsdata(frame))
div -- Creates box
:css('width',args["width"] or '240px')