Documentation for this module may be created at Module:Sandbox/Lea Lacroix (WMDE)/doc

--Sandbox created during the Lua workshop at Wikimania hackathon 2019
--task2

p={}

function p.CleverName(frame)
	return 'Hello world'
end

p.Hi = function(frame)
	strName = frame.args.name or "Jimbo"
	return "Hello from Lua to my friend " .. strName .. ".<br/>"
end


function p.temperature(frame)
	cel=tonumber(frame.args.celsius)
	fah=cel*9/5+32
	if cel>10 then
		msg = "it is warm" 
	else 
		msg = " it is cold"
	end
	return fah .. msg
end

return p