<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh">
	<id>https://130.wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3ASpecial_wikitext%2FTemplate</id>
	<title>Module:Special wikitext/Template - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://130.wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3ASpecial_wikitext%2FTemplate"/>
	<link rel="alternate" type="text/html" href="https://130.wiki/index.php?title=Module:Special_wikitext/Template&amp;action=history"/>
	<updated>2026-11-27T10:15:36Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://130.wiki/index.php?title=Module:Special_wikitext/Template&amp;diff=4405&amp;oldid=prev</id>
		<title>闲敲棋子落灯花：​导入1个版本</title>
		<link rel="alternate" type="text/html" href="https://130.wiki/index.php?title=Module:Special_wikitext/Template&amp;diff=4405&amp;oldid=prev"/>
		<updated>2026-08-04T01:07:59Z</updated>

		<summary type="html">&lt;p&gt;导入1个版本&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2026年8月4日 (二) 01:07的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;zh&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;（没有差异）&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key 130.wiki::diff:1.41:old-4404:rev-4405 --&gt;
&lt;/table&gt;</summary>
		<author><name>闲敲棋子落灯花</name></author>
	</entry>
	<entry>
		<id>https://130.wiki/index.php?title=Module:Special_wikitext/Template&amp;diff=4404&amp;oldid=prev</id>
		<title>Qiuwen&gt;求闻编者：​修改自此处；原许可：CC BY-SA 3.0［网站升级迁移］</title>
		<link rel="alternate" type="text/html" href="https://130.wiki/index.php?title=Module:Special_wikitext/Template&amp;diff=4404&amp;oldid=prev"/>
		<updated>2022-06-13T00:00:00Z</updated>

		<summary type="html">&lt;p&gt;修改自&lt;a href=&quot;/index.php?title=Zhwiki:Module:Special_wikitext/Template&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Zhwiki:Module:Special wikitext/Template（页面不存在）&quot; rel=&quot;nofollow&quot;&gt;此处&lt;/a&gt;；原许可：&lt;a href=&quot;/index.php?title=Cc-by-sa:3.0&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Cc-by-sa:3.0（页面不存在）&quot; rel=&quot;nofollow&quot;&gt;CC BY-SA 3.0&lt;/a&gt;［网站升级迁移］&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;--Author: Xiplus, A2569875&lt;br /&gt;
--CC BY-SA 3.0 &amp;lt;https://creativecommons.org/licenses/by-sa/3.0&amp;gt;&lt;br /&gt;
&lt;br /&gt;
local p={}&lt;br /&gt;
--{{#invoke:Special wikitext/Template|contentModel}}&lt;br /&gt;
function p.contentModel(frame)&lt;br /&gt;
	local page_name = frame.args[1] or frame.args[&amp;#039;1&amp;#039;] or &amp;#039;&amp;#039;&lt;br /&gt;
	local default_namespace = mw.text.trim(frame.args[2] or frame.args[&amp;#039;2&amp;#039;] or &amp;#039;&amp;#039;)&lt;br /&gt;
	local page_data = (mw.text.trim(page_name)==&amp;#039;&amp;#039;and mw.title.getCurrentTitle() or mw.title.new(page_name,default_namespace))&lt;br /&gt;
	return (page_data or {}).contentModel or &amp;#039;wikitext&amp;#039;&lt;br /&gt;
end&lt;br /&gt;
--{{#invoke:Special wikitext/Template|luaContentFromPage}}&lt;br /&gt;
function p.luaContentFromPage(frame)&lt;br /&gt;
	local page_name = frame.args[1] or frame.args[&amp;#039;1&amp;#039;] or &amp;#039;&amp;#039;&lt;br /&gt;
	local default_namespace = mw.text.trim(frame.args[2] or frame.args[&amp;#039;2&amp;#039;] or &amp;#039;&amp;#039;)&lt;br /&gt;
	local page_data = (mw.text.trim(page_name)==&amp;#039;&amp;#039;and mw.title.getCurrentTitle() or mw.title.new(page_name, default_namespace))&lt;br /&gt;
	local contentModel = mw.ustring.lower((page_data or {}).contentModel or &amp;#039;wikitext&amp;#039;)&lt;br /&gt;
	if contentModel == &amp;#039;scribunto&amp;#039; or contentModel == &amp;#039;lua&amp;#039; then&lt;br /&gt;
		pcall(require, page_data.prefixedText) -- if it fails, we don&amp;#039;t care&lt;br /&gt;
		local moduleWikitext = package.loaded[&amp;quot;Module:Module wikitext&amp;quot;]&lt;br /&gt;
		if moduleWikitext then&lt;br /&gt;
			return moduleWikitext.main()&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;#039;&amp;#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--{{#invoke:Special wikitext/Template|markinclude}}&lt;br /&gt;
function p.markinclude(frame)&lt;br /&gt;
	local page_name = frame.args[1] or frame.args[&amp;#039;1&amp;#039;] or &amp;#039;&amp;#039;&lt;br /&gt;
	local detail = mw.text.trim(frame.args[2] or frame.args[&amp;#039;2&amp;#039;] or &amp;#039;&amp;#039;)&lt;br /&gt;
	local page_data = (mw.text.trim(page_name)==&amp;#039;&amp;#039;and mw.title.getCurrentTitle() or mw.title.new(page_name))&lt;br /&gt;
	if page_data:getContent() then -- recorded as a transclusion, and check exist.&lt;br /&gt;
		return &amp;#039;*[[:&amp;#039;..page_name..&amp;#039;]]&amp;#039; .. (detail ~= &amp;#039;&amp;#039; and (&amp;#039;（&amp;#039;..detail..&amp;#039;）&amp;#039;) or &amp;#039;&amp;#039;)&lt;br /&gt;
	elseif mw.text.trim(page_name) ~= &amp;#039;&amp;#039; then&lt;br /&gt;
		return &amp;#039;*&amp;#039;..page_name.. (detail ~= &amp;#039;&amp;#039; and (&amp;#039;（&amp;#039;..detail..&amp;#039;）&amp;#039;) or &amp;#039;&amp;#039;)&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;#039;&amp;#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--{{#invoke:Special wikitext/Template|checkPage}}&lt;br /&gt;
function p.checkPage(frame)&lt;br /&gt;
	local chk_name = frame.args[1] or frame.args[&amp;#039;1&amp;#039;] or &amp;#039;&amp;#039;&lt;br /&gt;
	local cur_name = frame.args[2] or frame.args[&amp;#039;2&amp;#039;] or &amp;#039;&amp;#039;&lt;br /&gt;
	local default_namespace = mw.text.trim(frame.args[3] or frame.args[&amp;#039;3&amp;#039;] or &amp;#039;&amp;#039;)&lt;br /&gt;
	if mw.text.trim(chk_name or &amp;#039;&amp;#039;)==&amp;#039;&amp;#039;then return &amp;#039;&amp;#039; end&lt;br /&gt;
	return p._checkPage(chk_name, cur_name, default_namespace) and &amp;#039;1&amp;#039; or &amp;#039;&amp;#039;&lt;br /&gt;
end&lt;br /&gt;
function p._checkPage(page, srcpage, default_namespace)&lt;br /&gt;
	local chk_page, cur_page = mw.title.new(page, default_namespace), (mw.text.trim(srcpage or &amp;#039;&amp;#039;)==&amp;#039;&amp;#039; and mw.title.getCurrentTitle() or mw.title.new(srcpage, default_namespace))&lt;br /&gt;
	local chk_name, cur_name = &amp;#039;##:&amp;#039;..chk_page.fullText, &amp;#039;##:&amp;#039;..cur_page.fullText&lt;br /&gt;
	local chk_reg = mw.ustring.gsub(chk_name,&amp;#039;([%%\\])&amp;#039;,&amp;#039;%1%1&amp;#039;)&lt;br /&gt;
	local chk_regs, cur_names = chk_reg..(mw.ustring.sub(chk_reg,-1,-1)==&amp;#039;/&amp;#039;and&amp;#039;&amp;#039;or&amp;#039;/&amp;#039;), cur_name..(mw.ustring.sub(cur_name,-1,-1)==&amp;#039;/&amp;#039;and&amp;#039;&amp;#039;or&amp;#039;/&amp;#039;)&lt;br /&gt;
	local findpos = mw.ustring.find(cur_name, chk_reg)&lt;br /&gt;
	if (tonumber(findpos) or -1) &amp;gt; 0 then findpos = mw.ustring.find(cur_names, chk_regs)end&lt;br /&gt;
	return (tonumber(findpos) or -1) &amp;gt; 0&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.int(frame)&lt;br /&gt;
	local int_name = frame.args[1] or frame.args[&amp;#039;1&amp;#039;] or &amp;#039;&amp;#039; &lt;br /&gt;
	local cur_frame = mw.getCurrentFrame()&lt;br /&gt;
	local body = mw.text.decode(cur_frame:preprocess(&amp;quot;{{msgnw:int:&amp;quot;..int_name..&amp;quot;}}&amp;quot;))&lt;br /&gt;
	body = mw.ustring.gsub(body,&amp;#039;#%s*invoke%s*:%s*Special%s+wikitext%|&amp;#039;,&amp;#039;void|&amp;#039;)&lt;br /&gt;
	return cur_frame:preprocess(body)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.getNotices(frame)&lt;br /&gt;
	local page_name = frame.args[1] or frame.args[&amp;#039;1&amp;#039;] or &amp;#039;&amp;#039; &lt;br /&gt;
	local cur_frame = mw.getCurrentFrame()&lt;br /&gt;
	local page_subname = frame.args[2] or frame.args[&amp;#039;2&amp;#039;] or &amp;#039;&amp;#039; &lt;br /&gt;
	local title = mw.title.new(&amp;#039;Template:Editnotices/Page/&amp;#039; .. page_name)&lt;br /&gt;
	local subtitle = mw.title.new(&amp;#039;Template:Editnotices/Page/&amp;#039; .. page_name .. page_subname)&lt;br /&gt;
	if subtitle.exists then return frame:expandTemplate{ title = subtitle.text }&lt;br /&gt;
	elseif title.exists then return frame:expandTemplate{ title = title.text }&lt;br /&gt;
	else return &amp;#039;&amp;#039; end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Qiuwen&gt;求闻编者</name></author>
	</entry>
</feed>