440
edits
(Undid revision 953704116 by DiBabelYurikBot (talk) Rv unapproved bot; Wikipedia:Bots/Requests for approval/DiBabelYurikBot expired, also useless on this wiki) |
m (16 revisions imported from wikipedia:Module:TNT) |
||
(6 intermediate revisions by 5 users not shown) | |||
Line 50:
id = mw.text.trim(v)
elseif type(k) == 'number' then
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, val in
local columnName = names[pos]
if columnName == 'name' then
Line 153:
if not dataset then
error(formatMessage(i18nDataset, 'error_no_dataset', {}))
end
-- 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('Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:' .. dataset)
end
|