Difference between revisions of "Module:TNT"

Jump to navigation Jump to search
m
31 revisions imported
en>Erutuon
(insert positional parameters into params in the order of their keys, not the order in which pairs(frame.args) happens to encounter them)
m (31 revisions imported)
 
(One intermediate revision by one other user not shown)
Line 105: Line 105:
local newVal = {}
local newVal = {}
local name = nil
local name = nil
for pos, val in ipairs(row) do
for pos, columnName in ipairs(names) do
local columnName = names[pos]
if columnName == 'name' then
if columnName == 'name' then
name = val
name = row[pos]
else
else
newVal[columnName] = val
newVal[columnName] = row[pos]
end
end
end
end

Navigation menu