<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://newmoon.click/history/%E6%A8%A1%E5%9D%97:Work?feed=atom</id>
	<title>模块:Work - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://newmoon.click/history/%E6%A8%A1%E5%9D%97:Work?feed=atom"/>
	<link rel="alternate" type="text/html" href="https://newmoon.click/history/%E6%A8%A1%E5%9D%97:Work"/>
	<updated>2026-10-19T09:51:02Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://newmoon.click/index.php?title=%E6%A8%A1%E5%9D%97:Work&amp;diff=1399&amp;oldid=prev</id>
		<title>Smalllqiang：​如果页面不存在, 则返回 社团/制品名</title>
		<link rel="alternate" type="text/html" href="https://newmoon.click/index.php?title=%E6%A8%A1%E5%9D%97:Work&amp;diff=1399&amp;oldid=prev"/>
		<updated>2026-08-11T09:00:05Z</updated>

		<summary type="html">&lt;p&gt;如果页面不存在, 则返回 社团/制品名&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-Hans-CN&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月11日 (二) 17:00的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l16&quot;&gt;第16行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第16行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     end&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     end&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     return targetPage&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;    -- 如果页面不存在, 则返回 社团/制品名&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     return targetPage &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;or currentTitle .. &#039;/&#039; .. workName&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;end&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;end&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;return p&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;return p&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Smalllqiang</name></author>
	</entry>
	<entry>
		<id>https://newmoon.click/index.php?title=%E6%A8%A1%E5%9D%97:Work&amp;diff=1337&amp;oldid=prev</id>
		<title>Smalllqiang：​创建页面，内容为“local p = {}  -- 获取制品页面 -- 输入 制品名, 无父页面 -- 输出 制品页面 function p.getWorkPage(frame)     local workName = frame.args[1]     local targetPage = nil     local currentTitle = mw.title.getCurrentTitle().prefixedText     -- 如果当前页面下有同名子页面, 优先选择此     if mw.title.new(currentTitle .. &#039;/&#039; .. workName).exists then         targetPage = currentTitle .. &#039;/&#039; .. workName     -- 选择(主)命名空间下…”</title>
		<link rel="alternate" type="text/html" href="https://newmoon.click/index.php?title=%E6%A8%A1%E5%9D%97:Work&amp;diff=1337&amp;oldid=prev"/>
		<updated>2026-08-10T18:24:57Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“local p = {}  -- 获取制品页面 -- 输入 制品名, 无父页面 -- 输出 制品页面 function p.getWorkPage(frame)     local workName = frame.args[1]     local targetPage = nil     local currentTitle = mw.title.getCurrentTitle().prefixedText     -- 如果当前页面下有同名子页面, 优先选择此     if mw.title.new(currentTitle .. &amp;#039;/&amp;#039; .. workName).exists then         targetPage = currentTitle .. &amp;#039;/&amp;#039; .. workName     -- 选择(主)命名空间下…”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
&lt;br /&gt;
-- 获取制品页面&lt;br /&gt;
-- 输入 制品名, 无父页面&lt;br /&gt;
-- 输出 制品页面&lt;br /&gt;
function p.getWorkPage(frame)&lt;br /&gt;
    local workName = frame.args[1]&lt;br /&gt;
    local targetPage = nil&lt;br /&gt;
    local currentTitle = mw.title.getCurrentTitle().prefixedText&lt;br /&gt;
    -- 如果当前页面下有同名子页面, 优先选择此&lt;br /&gt;
    if mw.title.new(currentTitle .. &amp;#039;/&amp;#039; .. workName).exists then&lt;br /&gt;
        targetPage = currentTitle .. &amp;#039;/&amp;#039; .. workName&lt;br /&gt;
    -- 选择(主)命名空间下的同名页面&lt;br /&gt;
    elseif mw.title.new(workName).exists then&lt;br /&gt;
    	targetPage = workName&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    return targetPage&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Smalllqiang</name></author>
	</entry>
</feed>