Difference between revisions of "Module:TNT"

14 bytes removed ,  16:44, 6 July 2021
Apply fix from user:ExE Boss - copying https://www.mediawiki.org/w/index.php?title=Module:TNT/sandbox&oldid=4692817
>Erutuon
(insert positional parameters into params in the order of their keys, not the order in which pairs(frame.args) happens to encounter them)
>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