Module:Infobox: Difference between revisions

Content added Content deleted
(hack to parse the parameters in the 'correct' order)
(shorter variable name for what is a pretty simple role, really)
Line 255: Line 255:
end
end
local temp
local temp
local argumentCounter = 1
local a = 1
local moreArgumentsExist = true
local moreArgumentsExist = true
for j,v in ipairs(prefixTable) do
for j,v in ipairs(prefixTable) do
Line 265: Line 265:
while moreArgumentsExist == true do
while moreArgumentsExist == true do
moreArgumentsExist = false
moreArgumentsExist = false
for i = argumentCounter, argumentCounter + 19 do
for i = a, a+19 do
for j,v in ipairs(prefixTable) do
for j,v in ipairs(prefixTable) do
temp = origArgs[v .. tostring(i)]
temp = origArgs[v .. tostring(i)]
Line 273: Line 273:
end
end
end
end
argumentCounter = argumentCounter + 20
a = a + 20
end
end
end
end