Module:Sandbox/Jackmcbarn: Difference between revisions

Content deleted Content added
Jackmcbarn (talk | contribs)
see if this fatal happens in production
Jackmcbarn (talk | contribs)
better test
Line 1:
local p = {}
mw.getCurrentFrame():callParserFunction('#invoke',{'foo', 'bar', 'baz', 'qux'})
 
function p.bar(frame)
return 'Hello world'
end
 
function p.fnOnly(frame)
return mw.getCurrentFrame():callParserFunction('#invoke',{'foo', 'bar'})
end
 
function p.oneArg(frame)
return mw.getCurrentFrame():callParserFunction('#invoke',{'foo', 'bar', 'baz'})
end
 
function p.twoArgs(frame)
return mw.getCurrentFrame():callParserFunction('#invoke',{'foo', 'bar', 'baz', 'qux'})
end
 
return p