Module:Sandbox/lizaamini

-- lizaamini Google Code-in 2017, Introduction to Lua in Wikipedia.

-- Task 3: Create your own Lua module on English Wikipedia local p = {} -- p stands for package

function p.hello(frame) return "Hello, world!" end

function p.Hi(frame) strName = frame.args.name or "Jimbo" return "Hello from Lua to my friend " .. strName .. ". " end

function p.temperature(frame) cel = frame.args.celsius or 0 fah = (cel*9)/5+32 return cel .. " degrees Celsius is " .. fah .. " degrees Fahrenheit." end

return p