Module:Graph:Chart

From Seeds of the Word, the encyclopedia of the influence of the Gospel on culture
Revision as of 17:59, May 18, 2021 by en>MusikBot II (Protected "Module:Graph:Chart": High-risk template or module (more info) ([Edit=Require autoconfirmed or confirmed access] (indefinite)))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation for this module may be created at Module:Graph:Chart/doc

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