مدیران رابط کاربری، مدیران، templateeditor
۲۴٬۵۵۵
ویرایش
جز (۱ نسخه واردشده) |
بدون خلاصۀ ویرایش |
||
(۴ نسخهٔ میانی ویرایش شده توسط ۴ کاربر نشان داده نشد) | |||
خط ۱۴: | خط ۱۴: | ||
-- Defaults global to this module | -- Defaults global to this module | ||
local defaults = { | local defaults = { | ||
label = ' | label = 'انظر أيضًا', --Final fallback for label argument | ||
labelForm = '%s: %s', | labelForm = '%s: %s', | ||
prefixes = {'label', 'label ', 'l'}, | prefixes = {'label', 'label ', 'l'}, | ||
خط ۳۵: | خط ۳۵: | ||
end | end | ||
local page = display and | local page = display and | ||
mw.ustring.format('%s|%s', mw.ustring.gsub(v, '|.*$', ''), display) or v | |||
pages[#pages + 1] = page | pages[#pages + 1] = page | ||
end | end | ||
خط ۶۹: | خط ۶۹: | ||
if #pages == 0 then | if #pages == 0 then | ||
return mHatnote.makeWikitextError( | return mHatnote.makeWikitextError( | ||
' | 'لم تُحدد أسماء صفحات', | ||
(options.template or defaults.template) .. '# | (options.template or defaults.template) .. '#أخطاء', | ||
options.category | options.category | ||
) | ) | ||
خط ۸۵: | خط ۸۵: | ||
end | end | ||
end | end | ||
local text = | local text = mw.ustring.format( | ||
options.labelForm or defaults.labelForm, | options.labelForm or defaults.labelForm, | ||
label, | label, |