localp={}functionp.main(frame)-- Aggregate the page arguments and pre-set template arguments into one arguments table.t={}fori,vinipairs(frame:getParent().args)dotable.insert(t,v)endfori,vinipairs(frame.args)dotable.insert(t,v)end-- Create a new frame with the aggregate arguments.localnew_frame=frame:newChild{title=frame:getTitle(),args=t}-- Set the new frame as its own parent. This ensures that the aggregated arguments are processed when [[Module:also]] processes the parent arguments of the input frame.functionnew_frame:getParent()returnselfend-- Call standard module.returnrequire('Module:also').main(new_frame)endreturnp