330
edits
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, | for pos, columnName in ipairs(names) do | ||
if columnName == 'name' then | if columnName == 'name' then | ||
name = | name = row[pos] | ||
else | else | ||
newVal[columnName] = | newVal[columnName] = row[pos] | ||
end | end | ||
end | end |