updating to current TNT standard
NotAracham (talk | contribs) m (1 revision imported) |
NotAracham (talk | contribs) (updating to current TNT standard) |
||
Line 50:
id = mw.text.trim(v)
elseif type(k) == 'number' then
table.insert(params
elseif k == 'lang' and v ~= '_' then
lang = mw.text.trim(v)
Line 96:
local data = loadData(dataset)
local names = {}
for _, field in
table.insert(names, field.name)
end
Line 102:
local params = {}
local paramOrder = {}
for _, row in
local newVal = {}
local name = nil
for pos,
local columnName = names[pos]
if columnName == 'name' then
name =
else
newVal[columnName] =
end
end
Line 156 ⟶ 157:
-- Give helpful error to thirdparties who try and copy this module.
if not mw.ext or not mw.ext.data or not mw.ext.data.get then
error(
end
|