Jump to content

Module:Sandbox

From Simple English Wikipedia, the free encyclopedia
Revision as of 15:30, 18 December 2017 by en>Ohm100

®️ 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
local p = {} -- p stands for package
p.temperature = function(frame)
	cel = frame.args.celsius
	fah = 9*cel/5+32
	return ""..cel.. " degrees Celsius is "..fah.." degrees Fahrenheit".. ".<br>"
end
return p