Module:Sandbox/Alicia Fagerving (WMSE)
Appearance
--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