Module:Version range

local p = {}

function p.main ( f ) local args = f	if f == mw.getCurrentFrame then args = f:getParent.args end local versionArg = args[1] or '' local edition = args[2] or '' local main = {} ph = 0 for version in mw.text.gsplit(versionArg, '%s*,%s*') do		if (ph == 0) then table.insert(main, "".. version .." - ") else table.insert(main, "".. version .. "") end ph = 1 end return table.concat(main) end

return p