Module:Sandbox/Jackmcbarn: Difference between revisions

Content deleted Content added
Jackmcbarn (talk | contribs)
better test
Jackmcbarn (talk | contribs)
fix names
Line 1:
local p = {}
 
function p.barmain(frame)
return 'Hello world'
end
 
function p.fnOnly(frame)
return mw.getCurrentFrame():callParserFunction('#invoke',{'fooSandbox/Jackmcbarn', 'barmain'})
end
 
function p.oneArg(frame)
return mw.getCurrentFrame():callParserFunction('#invoke',{'fooSandbox/Jackmcbarn', 'barmain', 'baz'})
end
 
function p.twoArgs(frame)
return mw.getCurrentFrame():callParserFunction('#invoke',{'fooSandbox/Jackmcbarn', 'barmain', 'baz', 'qux'})
end