Content deleted Content added
←Created page with '--this is a comment! whitespace does not matter --task2' |
No edit summary |
||
(8 intermediate revisions by the same user not shown) | |||
Line 1:
--this is a comment! whitespace does not matter
--task2
p = {}
function p.Kitten(frame)
return "Meow"
end
p.Hi = function(frame)
strName = frame.args.name or "default name"
return "Hi there " .. strName .. ".<hr>"
end
p.Temperature = function(frame)
cel = tonumber(frame.args.celsius)
fah = cel * 9 / 5 + 32
if cel > 20 then
msg = "It is warm!"
else
msg = "It's chilly."
end
return "so " .. frame.args.celsius .. " celsius is " .. fah .. " fahrenheit. " .. msg
end
return p
|