Module:Ping2

Jump to navigation Jump to search
Documentation[create] [refresh]
This module has no documentation. If you know how to use this module, please create it.
local function printUsername(name)
	return '[[User:' .. name .. '|' .. name .. ']]'
end

local p = {}
function p.main(frame)
	local arg = frame:getParent().args[1]
	local tbl = {}
	for k, v in ipairs(mw.text.split(arg,'%s*,%s*')) do
		tbl[k] = printUsername(v)
	end
	local output = table.concat(tbl, ', ')
	return output
	
end

return p