Module:LuaCall: Difference between revisions

From Test Wiki
Content deleted Content added
specialize module name and function name
+desc
Line 78: Line 78:
--
--
-- This function is usually useful for debugging template parameters.
-- This function is usually useful for debugging template parameters.
-- Prefix parameter with backslash (\) to force interpreting parameter as string.
-- The leading backslash will be removed before passed to Lua function.
--
--
-- Example:
-- Example:
-- {{#invoke:LuaCall|call|mw.log|a|1|2|3}} will return results of mw.log('a', 1, 2, 3)
-- {{#invoke:LuaCall|call|mw.log|a|1|2|3}} will return results of mw.log('a', 1, 2, 3)
-- {{#invoke:LuaCall|call|mw.logObject|a|321}} will return results of mw.logObject('a', 321)
-- {{#invoke:LuaCall|call|mw.logObject|\a|321|\321| \321 }} will return results of mw.logObject('a', 321, '321', ' \321 ')
--
--
-- This example show the debugging to see which Unicode characters are allowed in template parameters,
-- This example show the debugging to see which Unicode characters are allowed in template parameters,