Module:Games

local p = {}

function ftrim(str, char) local first = string.sub(str, 1, 1) if first == char then return string.sub(str, 2) else return str end end

function p.links(frame) local result = '' for game in string.gmatch(frame.args[1], '([^,]+)') do       result = result .. '' .. ftrim(game, ' ') .. ' ' end return frame:preprocess(string.sub(result, 1, string.len(result) - 5)) end

return p