Documentation for this module may be created at မဝ်ဂျူ:also/wrap/doc

local p = {}

function p.main(frame)
	
	-- Concatenate the page arguments and pre-set template arguments into an aggregated arguments table.
	t = {}
	
	for i, v in ipairs (frame:getParent().args) do
		t[#t+1] = v
	end
	for i, v in ipairs (frame.args) do
		t[#t+1] = v
	end
	
	frame.args = t
	
	-- Set the frame as its own parent. This ensures that the aggregated arguments are processed when [[Module:also]] processes the parent arguments of the input frame.
	function frame:getParent() return self end
	
	-- Call standard module
	local r = require('Module:also')
	
	return r.main(frame)
	
end

return p