<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://chabadpedia.com/index.php?action=history&amp;feed=atom&amp;title=Module%3ARedirect-multi</id>
	<title>Module:Redirect-multi - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://chabadpedia.com/index.php?action=history&amp;feed=atom&amp;title=Module%3ARedirect-multi"/>
	<link rel="alternate" type="text/html" href="https://chabadpedia.com/index.php?title=Module:Redirect-multi&amp;action=history"/>
	<updated>2026-04-30T08:46:03Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>https://chabadpedia.com/index.php?title=Module:Redirect-multi&amp;diff=6213&amp;oldid=prev</id>
		<title>Shia.k: Created page with &quot;local mRedirectHatnote = require(&#039;Module:Redirect hatnote&#039;) local mArguments = require(&#039;Module:Arguments&#039;) local mHatnote = require(&#039;Module:Hatnote&#039;) local p = {}  function p.redirectMulti (frame) 	local args = mArguments.getArgs(frame) 	--Get maxArg manually because getArgs and table.maxn aren&#039;t friends 	local maxArg = 0 	for k, v in pairs(args) do 		if type(k) == &#039;number&#039; and k &gt; maxArg then maxArg = k end 	end 	--Get number of redirects then remove it from the args ta...&quot;</title>
		<link rel="alternate" type="text/html" href="https://chabadpedia.com/index.php?title=Module:Redirect-multi&amp;diff=6213&amp;oldid=prev"/>
		<updated>2025-03-22T22:26:15Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;local mRedirectHatnote = require(&amp;#039;Module:Redirect hatnote&amp;#039;) local mArguments = require(&amp;#039;Module:Arguments&amp;#039;) local mHatnote = require(&amp;#039;Module:Hatnote&amp;#039;) local p = {}  function p.redirectMulti (frame) 	local args = mArguments.getArgs(frame) 	--Get maxArg manually because getArgs and table.maxn aren&amp;#039;t friends 	local maxArg = 0 	for k, v in pairs(args) do 		if type(k) == &amp;#039;number&amp;#039; and k &amp;gt; maxArg then maxArg = k end 	end 	--Get number of redirects then remove it from the args ta...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local mRedirectHatnote = require(&amp;#039;Module:Redirect hatnote&amp;#039;)&lt;br /&gt;
local mArguments = require(&amp;#039;Module:Arguments&amp;#039;)&lt;br /&gt;
local mHatnote = require(&amp;#039;Module:Hatnote&amp;#039;)&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
function p.redirectMulti (frame)&lt;br /&gt;
	local args = mArguments.getArgs(frame)&lt;br /&gt;
	--Get maxArg manually because getArgs and table.maxn aren&amp;#039;t friends&lt;br /&gt;
	local maxArg = 0&lt;br /&gt;
	for k, v in pairs(args) do&lt;br /&gt;
		if type(k) == &amp;#039;number&amp;#039; and k &amp;gt; maxArg then maxArg = k end&lt;br /&gt;
	end&lt;br /&gt;
	--Get number of redirects then remove it from the args table&lt;br /&gt;
	local numRedirects = tonumber(args[1]) or 1&lt;br /&gt;
	--Manual downshift of arguments; not using table.remove because getArgs is&lt;br /&gt;
	--gnarly and it&amp;#039;s not a sequence anyway&lt;br /&gt;
	for i = 2, maxArg + 1 do args[i - 1] = args[i] end&lt;br /&gt;
	--if no arguments past redirects exist, add in a default set&lt;br /&gt;
	if maxArg - 2 &amp;lt;= numRedirects then&lt;br /&gt;
		for i = 1, numRedirects do&lt;br /&gt;
			args[numRedirects + (2 * i)] = args[i] and mHatnote.disambiguate(args[i])&lt;br /&gt;
			--this does add in an &amp;quot;and&amp;quot; after the last item, but it&amp;#039;s ignored&lt;br /&gt;
			args[numRedirects + (2 * i) + 1] = &amp;#039;and&amp;#039;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	local options = {selfref = args.selfref}&lt;br /&gt;
	return mRedirectHatnote._redirect(args, numRedirects, options)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Shia.k</name></author>
	</entry>
</feed>