Jump to content

Module:Sandbox/Ash Crow

From Wikipedia, the free encyclopedia
--this is a comment
--task2

p = {}

function p.CleverName(frame)
	return "Hello World."
end

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

p.temperature = function(frame)
	cel = tonumber(frame.args.celsius)  or 0
	fah = cel * 9 / 5 + 32
	if cel > 20 then
		msg = " It is warm"
	else
		msg = " It's not that warm."
	end
	return "The temperature in fahrenheit is " .. fah .. "°F." .. msg
end

return p