<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh">
	<id>https://galbaike.com/index.php?action=history&amp;feed=atom&amp;title=Module%3ARedirect-multi</id>
	<title>Module:Redirect-multi - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://galbaike.com/index.php?action=history&amp;feed=atom&amp;title=Module%3ARedirect-multi"/>
	<link rel="alternate" type="text/html" href="https://galbaike.com/index.php?title=Module:Redirect-multi&amp;action=history"/>
	<updated>2026-11-23T19:55:48Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://galbaike.com/index.php?title=Module:Redirect-multi&amp;diff=3989&amp;oldid=prev</id>
		<title>imported&gt;Tang891228：​复原Tang891228（讨论）的版本54744131</title>
		<link rel="alternate" type="text/html" href="https://galbaike.com/index.php?title=Module:Redirect-multi&amp;diff=3989&amp;oldid=prev"/>
		<updated>2019-06-08T22:36:56Z</updated>

		<summary type="html">&lt;p&gt;&lt;a href=&quot;/index.php?title=WP:UNDO&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;WP:UNDO（页面不存在）&quot;&gt;复原&lt;/a&gt;&lt;a href=&quot;/Special:Contributions/Tang891228&quot; title=&quot;Special:Contributions/Tang891228&quot;&gt;Tang891228&lt;/a&gt;（&lt;a href=&quot;/index.php?title=User_talk:Tang891228&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:Tang891228（页面不存在）&quot;&gt;讨论&lt;/a&gt;）的版本54744131&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&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;和&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>imported&gt;Tang891228</name></author>
	</entry>
</feed>