SMITE Esports Wiki
Advertisement

To edit the documentation or categories for this module, click here.


local p = {}
function p.data( frame )
	local args = frame
	if frame == mw.getCurrentFrame() then
		args = require( 'Module:ProcessArgs' ).merge( true )
	else
		frame = mw.getCurrentFrame()
	end
	
	local output = mw.loadData( 'Module:' .. args["datasource"] )
	return output[mw.ustring.lower(args[1] or '')] or args["default"]
end

return p
Advertisement