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

۱۳۸ بایت اضافه‌شده ،  ‏۲۳ ژوئن ۲۰۲۱
جز
بدون خلاصۀ ویرایش
جز (۱ نسخه واردشده)
fa.wikipedia.org>Jeeputer
جزبدون خلاصۀ ویرایش
خط ۴: خط ۴:
local root
local root
local empty_row_categories = {}
local empty_row_categories = {}
local category_in_empty_row_pattern = '%[%[%s*[Cc][Aa][Tt][Ee][Gg][Oo][Rr][Yy]%s*:[^]]*]]'
local category_in_empty_row_pattern = '%[%[%s*رده%s*:[^]]*]]'


local function fixChildBoxes(sval, tt)
local function fixChildBoxes(sval, tt)
خط ۳۶۵: خط ۳۶۵:
if args.title then
if args.title then
root:wikitext(
root:wikitext(
'[[Category:Pages which use embedded infobox templates with the title parameter]]'
'[[رده:صفحه‌هایی که از الگوهای جعبه اطلاعات جاسازی‌شده با پارامتر عنوان استفاده می‌کنند]]'
)
)
end
end
elseif #(getArgNums('data')) == 0 and mw.title.getCurrentTitle().namespace == 0 then
elseif #(getArgNums('data')) == 0 and mw.title.getCurrentTitle().namespace == 0 then
root:wikitext('[[Category:Articles which use infobox templates with no data rows]]')
root:wikitext('[[رده:مقاله‌هایی که از الگوهای جعبه اطلاعات بدون ردیف‌های داده استفاده می‌کنند]]')
end
end
end
end
کاربر ناشناس