Jump to content

Module:Sandbox/A ka es

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by A ka es (talk | contribs) at 15:05, 14 August 2019. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
--this is a comment
--task1

p = {} -- empty table

function p.FirstTry(frame)
	return "Hello World"
end
--task2
p.Hi = function(frame)
	anyName = frame.args.name or "Jimbo"
	return "Hello from lua to my friend " .. anyName .. ".<br>" -- .. catanation
end
--task3
function p.temperature(frame)
	cel = frame.args.celsius
	fah = cel * 9 / 5 + 32
	return fah
end
--task4
function p.temperature(frame)
	cel = frame.args.celsius
	fah = cel * 9 / 5 + 32
	return "The temperature in Fahrenheit is " .. fah ".<br>"
end

return p