More languages
More actions
m (More testing) |
m (More testing) |
||
Line 2: | Line 2: | ||
function p.test(frame) | function p.test(frame) | ||
local args = frame:getParent().args | local args = frame:getParent().args | ||
local num = {} | |||
for k,v in pairs(args) do | for k,v in pairs(args) do | ||
local | local temnum = k:match('^parameter(%d+)$') | ||
return tostring(num) | if temnum then table.insert(num, tonumber(temnum)) | ||
end | |||
return tostring(table.concat(num)) | |||
end | end | ||
end | end | ||
return p | return p |