Module:Sandbox
Appearance
®️ This is not a main module page, but it serves as a placeholder for testing lua codes.
At the edit box area below: add the title of the module, Example: 'Example', not: 'Module:Sandbox/Example'.
You can check the subpages of this page at Special:PrefixIndex/Module:Sandbox.
See also
--ohmoma100
-- [Lua task #3] Create your own Lua module on English Wikipedia
local p = {}-- p stands for package
p.times = function(frame)
local num = tonumber( frame.args.num ) or 2
local out = "Times table<br>"
for i = 1, 10 do
out = out .. i * num .. "<br>"
end
return out
end
return p
--Rhys420_Google_Code-In, Introduction_To_Lua_in_Wikipedia