کاربر ناشناس
جز
تکمیل بهروزرسانی (جزئی)
جز (۱ نسخه واردشده) |
جز (تکمیل بهروزرسانی (جزئی)) |
||
خط ۱۴: | خط ۱۴: | ||
-- 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, |