پودمان:Other uses: تفاوت میان نسخه‌ها

۵۹ بایت اضافه‌شده ،  ‏۱۶ ژانویهٔ ۲۰۲۲
بدون خلاصۀ ویرایش
(Removed p.otheruses2 function per its template's deletion)
 
بدون خلاصۀ ویرایش
خط ۳۸: خط ۳۸:
checkType('_otheruses', 2, options, 'table')
checkType('_otheruses', 2, options, 'table')
if not (options.defaultPage or options.title) then
if not (options.defaultPage or options.title) then
error('No default title data provided in "_otheruses" options table', 2)
error('هیچ داده عنوان پیش‌فرضی در "_otheruses" جدول گزینه‌ها ارائه نشده است', 2)
end
end
local emptyArgs = true
local emptyArgs = true
خط ۵۲: خط ۵۲:
--Generate and return hatnote
--Generate and return hatnote
local text = mHatlist.forSeeTableToString({{
local text = mHatlist.forSeeTableToString({{
use = options.otherText and "other " .. options.otherText or nil,
use = options.otherText and "دیگر " .. options.otherText or nil,
pages = args
pages = args
}})
}})
کاربر ناشناس