<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh">
	<id>https://hmoegirl.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AGetPageCode</id>
	<title>Module:GetPageCode - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://hmoegirl.com/index.php?action=history&amp;feed=atom&amp;title=Module%3AGetPageCode"/>
	<link rel="alternate" type="text/html" href="https://hmoegirl.com/index.php?title=Module:GetPageCode&amp;action=history"/>
	<updated>2026-04-23T23:15:38Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.39.0</generator>
	<entry>
		<id>https://hmoegirl.com/index.php?title=Module:GetPageCode&amp;diff=60199&amp;oldid=prev</id>
		<title>imported&gt;850710247liu：​创建页面，内容为“return function(name) 	local code = mw.title.new(name):getContent() 	local redirect = false 	if code == nil then return nil end 	if string.find(code, &#039;^#REDIRECT%s+%…”</title>
		<link rel="alternate" type="text/html" href="https://hmoegirl.com/index.php?title=Module:GetPageCode&amp;diff=60199&amp;oldid=prev"/>
		<updated>2020-02-21T03:12:38Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“return function(name) 	local code = mw.title.new(name):getContent() 	local redirect = false 	if code == nil then return nil end 	if string.find(code, &amp;#039;^#REDIRECT%s+%…”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;return function(name)&lt;br /&gt;
	local code = mw.title.new(name):getContent()&lt;br /&gt;
	local redirect = false&lt;br /&gt;
	if code == nil then return nil end&lt;br /&gt;
	if string.find(code, &amp;#039;^#REDIRECT%s+%[%[.+%]%]%s*$&amp;#039;) or string.find(code, &amp;#039;^#重定向%s+%[%[.+%]%]%s*$&amp;#039;) then&lt;br /&gt;
		redirect = string.gsub(code, &amp;#039;.+%[%[(.+)%]%]%s*$&amp;#039;, &amp;#039;%1&amp;#039;)&lt;br /&gt;
		code = mw.title.new(redirect):getContent()&lt;br /&gt;
	end&lt;br /&gt;
	return code, redirect&lt;br /&gt;
end&lt;/div&gt;</summary>
		<author><name>imported&gt;850710247liu</name></author>
	</entry>
</feed>