Module:Graph:Chart: Difference between revisions
From The Goon Show Depository
en>MusikBot II m (Protected "Module:Graph:Chart": High-risk template or module (more info) ([Edit=Require autoconfirmed or confirmed access] (indefinite))) |
m (1 revision imported) |
(No difference)
|
Latest revision as of 14:50, 14 January 2023
local p = {}
local graph = require('Module:Graph')
p[''] = function(frame)
local newFrame = {
getParent = function(self)
return frame
end,
getTitle = function(self)
return 'Template:Graph:Chart'
end,
args = {}
}
setmetatable(newFrame, {
__index = function(t, k)
if type(frame[k]) == 'function' then
return function(...)
return frame[k](frame, select(2, ...))
end
else
return frame[k]
end
end
})
return frame:extensionTag{ name='templatestyles', args={src='Template:Graph:Chart/styles.css'} },
frame:extensionTag('graph', graph.chartWrapper(newFrame))
end
return p