Module:Debug

From Wikipedia

Dump[edit]

table#1 {
   ["args"] = table#2 {
       metatable = table#3
       "Arg1",
       "Arg2",
       ["name"] = "Named arg",
       ["name2"] = "Another named arg",
   },
   ["argumentPairs"] = function#1,
   ["callParserFunction"] = function#2,
   ["expandTemplate"] = function#3,
   ["extensionTag"] = function#4,
   ["getArgument"] = function#5,
   ["getParent"] = function#6,
   ["getTitle"] = function#7,
   ["newChild"] = function#8,
   ["newParserValue"] = function#9,
   ["newTemplateParserValue"] = function#10,
   ["preprocess"] = function#11,

}

Echo[edit]

Foobar


local p = {
	dump = mw.dumpObject
}

function p.echo( frame )
	return frame.args[1]
end

return p