<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="uz">
	<id>https://ziyosfera.uz/index.php?action=history&amp;feed=atom&amp;title=Modul%3ARedirectData</id>
	<title>Modul:RedirectData - Oʻzgarishlar tarixi</title>
	<link rel="self" type="application/atom+xml" href="https://ziyosfera.uz/index.php?action=history&amp;feed=atom&amp;title=Modul%3ARedirectData"/>
	<link rel="alternate" type="text/html" href="https://ziyosfera.uz/index.php?title=Modul:RedirectData&amp;action=history"/>
	<updated>2026-11-17T21:06:24Z</updated>
	<subtitle>Ziyosferadagi mazkur sahifaning oʻzgarishlar tarixi</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://ziyosfera.uz/index.php?title=Modul:RedirectData&amp;diff=1554854&amp;oldid=prev</id>
		<title>Programmer: Modul:RedirectData yaratildi (yo&#039;naltirish andozalari xatosini bartaraf etish)</title>
		<link rel="alternate" type="text/html" href="https://ziyosfera.uz/index.php?title=Modul:RedirectData&amp;diff=1554854&amp;oldid=prev"/>
		<updated>2026-10-27T13:14:50Z</updated>

		<summary type="html">&lt;p&gt;Modul:RedirectData yaratildi (yo&amp;#039;naltirish andozalari xatosini bartaraf etish)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Yangi sahifa&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
&lt;br /&gt;
function p.getRedirectToNamespace(frame)&lt;br /&gt;
	local titleObject = mw.title.getCurrentTitle() -- check if this is a redirect&lt;br /&gt;
	if titleObject.redirectTarget then&lt;br /&gt;
		local targetNamespace = titleObject.redirectTarget.nsText&lt;br /&gt;
		return targetNamespace&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;quot;Notaredirect&amp;quot;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.getTalkPage(frame)&lt;br /&gt;
	local titleObject = mw.title.getCurrentTitle()&lt;br /&gt;
	if titleObject.redirectTarget then&lt;br /&gt;
		if not titleObject.isTalkPage then&lt;br /&gt;
			if titleObject.redirectTarget.isTalkPage then&lt;br /&gt;
				return &amp;quot;Yes&amp;quot;&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
		return &amp;quot;No&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;quot;Notaredirect&amp;quot;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.getSubpageStatus(frame)&lt;br /&gt;
	local titleObject = mw.title.getCurrentTitle()&lt;br /&gt;
	if titleObject.redirectTarget then&lt;br /&gt;
		local pageIsSubpage = titleObject.isSubpage&lt;br /&gt;
		local targetIsSubpage = titleObject.redirectTarget.isSubpage&lt;br /&gt;
		if (pageIsSubpage or targetIsSubpage) then&lt;br /&gt;
			if (pageIsSubpage and targetIsSubpage) then&lt;br /&gt;
				return &amp;quot;Both&amp;quot;&lt;br /&gt;
			elseif pageIsSubpage then&lt;br /&gt;
				return &amp;quot;Onlypage&amp;quot;&lt;br /&gt;
			else&lt;br /&gt;
				return &amp;quot;Onlytarget&amp;quot;&lt;br /&gt;
			end&lt;br /&gt;
		else&lt;br /&gt;
			return &amp;quot;Neither&amp;quot;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;quot;Notaredirect&amp;quot;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.toDisambig(frame)&lt;br /&gt;
	local titleObject = mw.title.getCurrentTitle()&lt;br /&gt;
	if titleObject.redirectTarget then&lt;br /&gt;
		if string.match(titleObject.text, &amp;quot;%(disambiguation%)&amp;quot;) then&lt;br /&gt;
			if titleObject.isTalkPage then&lt;br /&gt;
				return &amp;quot;Talk&amp;quot;&lt;br /&gt;
			else&lt;br /&gt;
				return &amp;quot;Article&amp;quot;&lt;br /&gt;
			end&lt;br /&gt;
		else&lt;br /&gt;
			return &amp;quot;No&amp;quot;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;quot;Notaredirect&amp;quot;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Programmer</name></author>
	</entry>
</feed>