Module:Sandbox/Raul
Documentation for this module may be created at Module:Sandbox/Raul/doc
local p = {}
function p.hello (frame) return "Hello, world!" end
function p.multiReturn(frame) return "Hello, world!","Goodbye, world!" end
function p.tableReturn(frame) mw.logObject({3, 4, 5, 6}) return mw.getLogBuffer() end
function p.functionReturn(frame) return function(a,b) return "five" end end
function p.loggy (frame)
mw.logObject(frame.args)
mw.logObject(mw.getCurrentFrame())
mw.logObject(frame:getParent().args)
mw.logObject(frame:getTitle())
return mw.getLogBuffer() end
function p.testExpand (frame) return frame:expandTemplate{title="=", args={}} end
function p.newpara (frame)
local para = mw.html.create("p")
para:wikitext("100% homemade") return tostring(para) end
return p