Module:LuaCall: Difference between revisions

From Test Wiki
Content deleted Content added
p.call()
p.call() ready to use
Line 99: Line 99:
end
end


--[[
-- this function is still draft
------------------------------------------------------------------------------------
-- call
--
-- Example:
-- {{#invoke:LuaCall|call|mw.log|a|1|2|3}} will return mw.log('a', 1, 2, 3)
-- {{#invoke:LuaCall|call|mw.logObject|a|321}} will return mw.logObject('a', 321)
--
------------------------------------------------------------------------------------
--]]
function p.call(frame)
function p.call(frame)
local args = {}
local args = {}