-- Deimos Google Code-in, Names of people
local p =
p.getnames = function (frame) local name = frame.args.name or "" name = string.sub(name, 2, (string.len(name)-1)) local format = format or "" local revname = string.reverse(name) local l_name = string.reverse(string.match(revname, "(%a+)")) or "" local f_name = string.gsub(name, l_name, "", 1) or "" return "Given Name: " .. f_name .. " Family Name: " .. l_nameend
return p