Module:TNT: Difference between revisions

Jump to navigation Jump to search
m
1 revision imported: maybe this will work
(update manually from mw)
 
m (1 revision imported: maybe this will work)
 
(2 intermediate revisions by 2 users not shown)
Line 153: Line 153:
if not dataset then
if not dataset then
error(formatMessage(i18nDataset, 'error_no_dataset', {}))
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
end


Navigation menu