Jump to content

Module:Sandbox

From Simple English Wikipedia, the free encyclopedia
Revision as of 05:50, 19 December 2017 by 117.212.69.121 (talk)

®️ 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

Wikipedia:Sandbox


--ohmoma100
-- [Lua task #3]  Create your own Lua module on English Wikipedia
p = {}

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