Difference between revisions of "Module:TNT"

Jump to navigation Jump to search
Apply fix from user:ExE Boss - copying https://www.mediawiki.org/w/index.php?title=Module:TNT/sandbox&oldid=4692817
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)
en>Yurik
(Apply fix from user:ExE Boss - copying https://www.mediawiki.org/w/index.php?title=Module:TNT/sandbox&oldid=4692817)
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
Anonymous user

Navigation menu