-- Google Code-in 2017, Introduction to Lua in Wikipedia.-- Creating Lua modules!localp={};functionp.hello(frame)return"Hello, world!";end;functionp.temperature(frame)cel=tonumber(frame.args.celsius)or0;fah=((cel*9)/5)+32;msg=cel.." degrees Celsius is "..fah.." degrees Fahrenheit.";ifcel>9thenmsg=msg.." It is warm.";elsemsg=msg.." It is cold.";end;returnmsg;end;p.times=function(frame)localnum=tonumber(frame.args.num)or2localout=num.." times table<br>"fori=1,12doout=out..i.." times "..num.." is equal to "..i*num.."<br>"endreturnoutendp.mum=function(frame)localfamily={"Dad","Mum","Uncle Stan","Aunty Elsie","Brian","Uncle Ben","Peter","Aunt May"};localmsg="";fori=1,#familydomsg=msg.."Hello "..family[i].."<br>";end;returnmsg;end;p.Hi=function(frame)strName=frame.args.nameor"Jimbo";return"Hello from Lua to my friend "..strName..".<br>";end;returnp;