Module:Test: Difference between revisions

From ProleWiki, the proletarian encyclopedia
m (More testing)
m (More testing)
Line 3: Line 3:
local args = frame:getParent().args
local args = frame:getParent().args
for k,v in pairs(args) do
for k,v in pairs(args) do
a = k .. " = " .. v .. " & "
local num = k:match('^parameter(%d+)$')
return tostring(a)
return tostring(num)
end
end
end
end
return p
return p

Revision as of 00:33, 24 June 2022

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