Content deleted Content added
No edit summary |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 11:
local targs = {}
for k,v in pairs(args) do
if k:find('^y
local digit =
local color = isnotempty(colors[tonumber(digit)]) and colors[tonumber(digit)] or pfetch({v, 'color'})
local pname = isnotempty(args['y' .. digit .. 'Title']) and args['y' .. digit .. 'Title'] or pfetch({v, 'abbrev'})
Line 21:
end
end
targs['colors'] =
return targs
end
function p.
local args = p._chart_args(frame:getParent().args)
local res = '<pre>\n{{Graph:Chart\n'
Line 42:
args = p._chart_args(frame:getParent().args)
}
end
function p.mainlua(frame)
local graphchart = require('Module:Graph:Chart')
frame.args = p._chart_args(frame:getParent().args)
return graphchart[''](frame)
end
|