Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Test: Difference between revisions

From ProleWiki, the proletarian encyclopedia
m (More testing)
m (More testing)
Line 7: Line 7:
if temnum then table.insert(num, tonumber(temnum))
if temnum then table.insert(num, tonumber(temnum))
end
end
return tostring(table.concat(num))
return __tostring(num)
end
end
end
end
return p
return p

Revision as of 00:51, 24 June 2022

local p = {}
function p.test(frame)
	local args = frame:getParent().args
	local num = {}
	for k,v in pairs(args) do
		local temnum = k:match('^parameter(%d+)$')
		if temnum then table.insert(num, tonumber(temnum))
		end
	return __tostring(num)
	end
end
return p