Module:Sandbox/A ka es: Difference between revisions

Content deleted Content added
A ka es (talk | contribs)
No edit summary
A ka es (talk | contribs)
No edit summary
Line 1:
--this is a comment
--task2task1
 
p = {} -- empty table
Line 7:
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