Module:Danny B.^P

From Wikipedia

Documentation for this module may be created at Module:Danny B.^P/doc

local _module = {}
----------------------------------------


local M = require( "Module:Danny B.^P/l" )


function _module.print( frame )
    
	local output = ""
	local parentFrame = frame:getParent()
	local templateArgs = parentFrame.args
	
	local data = {}
    
    
    for k,v in pairs( frame.args ) do
        data[k] = v
    end
    
	if not next( data ) then
		data = {
			a = templateArgs["aaa"],
			b = templateArgs["bbb"],
			c = templateArgs["ccc"]
		}
	end
	
	output = output .. M.print( data )
	
	output = frame:preprocess( output )
	
	return output
	
end


----------------------------------------
return _module