Content deleted Content added
No edit summary |
No edit summary |
||
(11 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 37:
end
function p.
return mw.getCurrentFrame():expandTemplate{
title = 'Graph:Chart',
Line 44:
end
function p.
local
return graphchart[''](frame)
▲ newFrame.args = p._chart_args(frame:getParent().args)
end
|