Module:Sandbox

From Yugipedia
Jump to: navigation, search
------------------------
--  Sandbox module:
--  For testing purposes
------------------------
-- <pre>
function spread( args )
	local tr = { '|-' }
	
	for _, v in ipairs( args ) do
		table.insert( tr, ( '| %s' ):format( v ) )
	end
	
	table.insert( tr, '\n' )
	
	return table.concat( tr, '\n' )
end

return {
	main = function(frame)
		local args = frame:getParent().args
		
		return spread( args )
	end,
	spread = spread
}
-- </pre>