جز
۱ نسخه واردشده
جز (Changed protection level for "Module:TNT": High-risk Lua module: per request at WP:RFPP to match Module:Excerpt ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))) |
جز (۱ نسخه واردشده) |
||
| (۲ نسخهٔ میانی ویرایش شده توسط ۲ کاربر نشان داده نشد) | |||
| خط ۱۵۷: | خط ۱۵۷: | ||
-- Give helpful error to thirdparties who try and copy this module. | -- 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 | if not mw.ext or not mw.ext.data or not mw.ext.data.get then | ||
error(' | error('افزونهٔ JsonConfig ناموجود است؛ ناتوان در بارگیری https://commons.wikimedia.org/wiki/Data:' .. dataset) | ||
end | end | ||
| خط ۱۶۵: | خط ۱۶۵: | ||
if dataset == i18nDataset then | if dataset == i18nDataset then | ||
-- Prevent cyclical calls | -- Prevent cyclical calls | ||
error(' | error('مجموعه دادهٔ ' .. i18nDataset .. ' در ویکیانبار موجود نیست') | ||
else | else | ||
error(formatMessage(i18nDataset, 'error_bad_dataset', {link(dataset)})) | error(formatMessage(i18nDataset, 'error_bad_dataset', {link(dataset)})) | ||
| خط ۱۸۸: | خط ۱۸۸: | ||
if dataset == i18nDataset then | if dataset == i18nDataset then | ||
-- Prevent cyclical calls | -- Prevent cyclical calls | ||
error(' | error('کلید پیام «' .. key .. '» نامعتبر است') | ||
else | else | ||
error(formatMessage(i18nDataset, 'error_bad_msgkey', {key, link(dataset)})) | error(formatMessage(i18nDataset, 'error_bad_msgkey', {key, link(dataset)})) | ||