Module:TNT: Difference between revisions

From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
Copying one change by Bawolff: "Give a more useful error message if jsonconfig is missing. There have been three questions about this on the support desk from third party folks copying this template." from mw:Module:TNT. (docs, translate)
m (Protected "Module:TNT": High-risk template or module (more info) ([Edit=Require autoconfirmed or confirmed access] (indefinite)))
(Copying one change by Bawolff: "Give a more useful error message if jsonconfig is missing. There have been three questions about this on the support desk from third party folks copying this template." from mw:Module:TNT. (docs, translate))
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
 
0

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu