<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ar">
	<id>https://3rabica.org/index.php?action=history&amp;feed=atom&amp;title=%D9%88%D8%AD%D8%AF%D8%A9%3ANavseasoncats_with_centuries_below_decade</id>
	<title>وحدة:Navseasoncats with centuries below decade - تاريخ المراجعة</title>
	<link rel="self" type="application/atom+xml" href="https://3rabica.org/index.php?action=history&amp;feed=atom&amp;title=%D9%88%D8%AD%D8%AF%D8%A9%3ANavseasoncats_with_centuries_below_decade"/>
	<link rel="alternate" type="text/html" href="https://3rabica.org/index.php?title=%D9%88%D8%AD%D8%AF%D8%A9:Navseasoncats_with_centuries_below_decade&amp;action=history"/>
	<updated>2026-06-13T02:36:52Z</updated>
	<subtitle>تاريخ التعديل لهذه الصفحة في الويكي</subtitle>
	<generator>MediaWiki 1.43.7</generator>
	<entry>
		<id>https://3rabica.org/index.php?title=%D9%88%D8%AD%D8%AF%D8%A9:Navseasoncats_with_centuries_below_decade&amp;diff=1815&amp;oldid=prev</id>
		<title>عبد العزيز في 16:16، 19 أكتوبر 2019</title>
		<link rel="alternate" type="text/html" href="https://3rabica.org/index.php?title=%D9%88%D8%AD%D8%AF%D8%A9:Navseasoncats_with_centuries_below_decade&amp;diff=1815&amp;oldid=prev"/>
		<updated>2019-10-19T16:16:04Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;صفحة جديدة&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
local nsc = require(&amp;#039;Module:Navseasoncats&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
function p.cbd( frame )&lt;br /&gt;
	local currtitle = mw.title.getCurrentTitle()&lt;br /&gt;
	local testcases = (currtitle.subpageText == &amp;#039;testcases&amp;#039;)&lt;br /&gt;
	local avoidself =  (currtitle.text ~= &amp;#039;Navseasoncats with centuries below decade&amp;#039; and          --avoid self&lt;br /&gt;
						currtitle.text ~= &amp;#039;Navseasoncats with centuries below decade/شرح&amp;#039; and      --avoid self&lt;br /&gt;
						currtitle.text ~= &amp;#039;Navseasoncats with centuries below decade/doc&amp;#039; and      --avoid self&lt;br /&gt;
						currtitle.text ~= &amp;#039;Navseasoncats with centuries below decade/sandbox&amp;#039; and  --avoid self&lt;br /&gt;
						currtitle.text ~= &amp;#039;Navseasoncats with centuries below decade/ملعب&amp;#039; and  --avoid self&lt;br /&gt;
						(currtitle.nsText ~= &amp;#039;Template&amp;#039; or currtitle.nsText ~= &amp;#039;قالب&amp;#039; or testcases)) --avoid nested transclusion errors&lt;br /&gt;
	&lt;br /&gt;
	local Testcase = frame:getParent().args[1]&lt;br /&gt;
	if Testcase == nil and avoidself == false then return &amp;#039;&amp;#039; end&lt;br /&gt;
	&lt;br /&gt;
	local pagename = Testcase or currtitle.baseText&lt;br /&gt;
	local findvar = nsc.find_var(pagename) --picks up decades/seasons/etc.&lt;br /&gt;
	if findvar[1] == &amp;#039;error&amp;#039; then&lt;br /&gt;
		local errorout = &amp;#039;&amp;#039;&lt;br /&gt;
		if avoidself then&lt;br /&gt;
			local errors = nsc.errorclass(&amp;#039;Function find_var can\&amp;#039;t recognize the decade for category &amp;quot;&amp;#039;..pagename..&amp;#039;&amp;quot;.&amp;#039;)&lt;br /&gt;
			errorout = nsc.failedcat(errors, &amp;#039;P&amp;#039;)&lt;br /&gt;
			if testcases then string.gsub(errorout, &amp;#039;(%[%[)(تصنيف)&amp;#039;, &amp;#039;%1:%2&amp;#039;) end&lt;br /&gt;
		end&lt;br /&gt;
		return errorout&lt;br /&gt;
	end&lt;br /&gt;
	mw.log(&amp;quot;findvar[1]&amp;quot;  .. findvar[1])&lt;br /&gt;
	mw.log(&amp;quot;findvar[2]&amp;quot;  .. findvar[2])&lt;br /&gt;
	local decade = tonumber(string.match(findvar[2], &amp;#039;^(%d+)&amp;#039;))&lt;br /&gt;
	if decade == nil or findvar[1] ~= &amp;#039;decade&amp;#039; then&lt;br /&gt;
		local errorout = &amp;#039;&amp;#039;&lt;br /&gt;
		if avoidself then&lt;br /&gt;
			local errors = nsc.errorclass(&amp;#039;{{Navseasoncats with centuries below decade}} can\&amp;#039;t recognize the decade for category &amp;quot;&amp;#039;..pagename..&amp;#039;&amp;quot;.&amp;#039;)&lt;br /&gt;
			errorout = nsc.failedcat(errors, &amp;#039;P&amp;#039;)&lt;br /&gt;
			if testcases then string.gsub(errorout, &amp;#039;(%[%[)(تصنيف)&amp;#039;, &amp;#039;%1:%2&amp;#039;) end&lt;br /&gt;
		end&lt;br /&gt;
		return errorout&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local firstpart, lastpart = string.match(pagename, &amp;#039;^(.*)عقد &amp;#039;..findvar[2]..&amp;#039;(.*)$&amp;#039;)&lt;br /&gt;
	firstpart = mw.text.trim(firstpart or &amp;#039;&amp;#039;)&lt;br /&gt;
	lastpart  = mw.text.trim(lastpart or &amp;#039;&amp;#039;)&lt;br /&gt;
	&lt;br /&gt;
	local nav1 = &amp;#039;&amp;#039;&lt;br /&gt;
	if Testcase then&lt;br /&gt;
		local args = { testcase = Testcase }&lt;br /&gt;
		nav1 = frame:expandTemplate{ title = &amp;#039;Navseasoncats&amp;#039;, args = args } --not sure how to pass frame &amp;amp; args together&lt;br /&gt;
	else&lt;br /&gt;
		nav1 = nsc.navseasoncats(frame)&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local century = math.floor( ((decade-1)/100) + 1 ) --from {{CENTURY}}&lt;br /&gt;
	if string.match(decade, &amp;#039;00$&amp;#039;) then century = century + 1 end --&amp;#039;2000&amp;#039; is technically in the 20th, but the rest of the 2000s is in the 21st&lt;br /&gt;
	local centurycat = mw.text.trim( firstpart..&amp;#039; القرن &amp;#039;..nsc.addord(century)..&amp;#039; &amp;#039;..lastpart )&lt;br /&gt;
	mw.log( &amp;quot;centurycat: &amp;quot; .. centurycat  )&lt;br /&gt;
	local exists = mw.title.new( centurycat, &amp;#039;تصنيف&amp;#039; ).exists&lt;br /&gt;
	if exists then&lt;br /&gt;
		local args = { [&amp;#039;century-below-decade&amp;#039;] = centurycat }&lt;br /&gt;
		local nav2 = frame:expandTemplate{ title = &amp;#039;Navseasoncats&amp;#039;, args = args } --not sure how to pass frame &amp;amp; args together&lt;br /&gt;
		return nav1..nav2&lt;br /&gt;
	else&lt;br /&gt;
		return nav1&lt;br /&gt;
	end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>عبد العزيز</name></author>
	</entry>
</feed>