Module:Commalink
Appearance
Documentation for this module may be created at Module:Commalink/doc
local p = {}
function p.link(frame)
local input = frame.args[1] or ""
if input == "" then return "" end
local result = {}
for item in string.gmatch(input, "([^,]+)") do
item = item:match("^%s*(.-)%s*$")
table.insert(result, "[[" .. item .. "]]")
end
return table.concat(result, ", ")
end
return p