مسابقه دانش‌دخت
اسلامیکال از تاریخ ۱۵ دی تا ۲۰ بهمن، میزبان یک همایه با موضوع زنان است. شما می‌توانید در مسابقه مقاله‌نویسی دانش‌دخت، شرکت کنید و با نگارش مقاله، از جوایز آن بهره‌مند باشید. اگر به موضوعات مربوط با زنان علاقه‌مندید، این فرصت را از دست ندهید. فهرستی از مقالات پیشنهادی جهت ایجاد یا ویرایش در اینجا وجود دارد.

پودمان:Pp-move-indef

از اسلامیکال
نسخهٔ تاریخ ‏۲۵ سپتامبر ۲۰۲۵، ساعت ۱۱:۰۰ توسط Aboammar (بحث | مشارکت‌ها) (صفحه‌ای تازه حاوی «-- This module implements Template:Pp-move-indef. local p = {} function p.main(title) if type(title) == 'string' then title = mw.title.new(title) elseif type(title) ~= 'table' or not title.text or not title.getContent then -- The title parameter is absent or not a title object. It could be a -- frame object if we are being called from #invoke. title = mw.title.getCurrentTitle() end local level = title and title.pr...» ایجاد کرد)
(تفاوت) → نسخهٔ قدیمی‌تر | نمایش نسخهٔ فعلی (تفاوت) | نسخهٔ جدیدتر ← (تفاوت)
پرش به ناوبری پرش به جستجو

توضیحات این پودمان می‌تواند در پودمان:Pp-move-indef/توضیحات قرار گیرد.

-- This module implements [[Template:Pp-move-indef]].

local p = {}

function p.main(title)
	if type(title) == 'string' then
		title = mw.title.new(title)
	elseif type(title) ~= 'table' or not title.text or not title.getContent then
		-- The title parameter is absent or not a title object. It could be a
		-- frame object if we are being called from #invoke.
		title = mw.title.getCurrentTitle()
	end
	
	local level = title
		and title.protectionLevels
		and title.protectionLevels.move
		and title.protectionLevels.move[1]
	local namespace = title and title.namespace

	local category
	if level == 'sysop' or level == 'templateeditor' then
		if namespace == 2 or namespace == 3 then
			category = 'صفحه‌های کاربری و بحث کاربری محافظت‌شده در برابر انتقال اسلامیکال'
		elseif namespace == 4 or namepace == 12 then
			category = 'صفحه‌های پروژه محافظت‌شده در برابر انتقال اسلامیکال'
		elseif namespace == 100 then
			category = 'درگاه‌های محافظت‌شده در برابر انتقال اسلامیکال'
		elseif title.isTalkPage then
			category = 'صفحه‌های بحث محافظت‌شده در برابر انتقال اسلامیکال'
		else
			category = 'صفحه‌های بی‌پایان محافظت‌شده در برابر انتقال اسلامیکال'
		end
	else
		category = 'صفحات اسلامیکال با الگوهای محافظت نادرست'
	end

	return string.format(
		'[[%s:%s|%s]]',
		mw.site.namespaces[14].name, -- "Category"
		category,
		title.text -- equivalent of {{PAGENAME}}
	)
end

return p