<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://cznwiki.com/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E5%9D%97%3ADoc</id>
	<title>模块:Doc - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://cznwiki.com/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E5%9D%97%3ADoc"/>
	<link rel="alternate" type="text/html" href="https://cznwiki.com/index.php?title=%E6%A8%A1%E5%9D%97:Doc&amp;action=history"/>
	<updated>2026-08-02T01:03:51Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://cznwiki.com/index.php?title=%E6%A8%A1%E5%9D%97:Doc&amp;diff=15&amp;oldid=prev</id>
		<title>律Rhyme：​修复了首行标题解析为纯文本的问题，并移除了导致模板页被误归类的代码</title>
		<link rel="alternate" type="text/html" href="https://cznwiki.com/index.php?title=%E6%A8%A1%E5%9D%97:Doc&amp;diff=15&amp;oldid=prev"/>
		<updated>2026-08-01T08:15:43Z</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月1日 (六) 16:15的版本&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-l23&quot;&gt;第23行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第23行：&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;         local content = docTitle:getContent()&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;         local content = docTitle:getContent()&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;         if content and content ~= &amp;#039;&amp;#039; then&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;         if content and content ~= &amp;#039;&amp;#039; then&lt;/div&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;             body:wikitext(frame:preprocess(content))&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;             body&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;:newline()&lt;/ins&gt;:wikitext(frame:preprocess(content)&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;):newline(&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;         else&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;         else&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;             body:tag(&amp;#039;div&amp;#039;):addClass(&amp;#039;tpl-doc__empty&amp;#039;)&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;             body:tag(&amp;#039;div&amp;#039;):addClass(&amp;#039;tpl-doc__empty&amp;#039;)&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;                 :wikitext(&amp;#039;文档子页面存在但内容为空。请[[Special:EditPage/&amp;#039; .. docPageName .. &amp;#039;|补充内容]]。&amp;#039;)&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;                 :wikitext(&amp;#039;文档子页面存在但内容为空。请[[Special:EditPage/&amp;#039; .. docPageName .. &amp;#039;|补充内容]]。&amp;#039;)&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; 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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;        html:wikitext(&#039;[[Category:模板文档]]&#039;)&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&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;     else&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;     else&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;         local createUrl = tostring(mw.uri.fullUrl(docPageName, {&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;         local createUrl = tostring(mw.uri.fullUrl(docPageName, {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key cznwiki:diff:1.41:old-6:rev-15:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>律Rhyme</name></author>
	</entry>
	<entry>
		<id>https://cznwiki.com/index.php?title=%E6%A8%A1%E5%9D%97:Doc&amp;diff=6&amp;oldid=prev</id>
		<title>律Rhyme：​创建页面，内容为“local p = {}  function p.main(frame)     local title = mw.title.getCurrentTitle()     local fullText = title.fullText     local docPageName = fullText .. &#039;/doc&#039;     local docTitle = mw.title.new(docPageName)      local html = mw.html.create(&#039;div&#039;):addClass(&#039;tpl-doc&#039;)      local header = html:tag(&#039;div&#039;):addClass(&#039;tpl-doc__header&#039;)     header:tag(&#039;span&#039;):addClass(&#039;tpl-doc__title&#039;):wikitext(&#039;模板文档&#039;)      local links = header:tag(&#039;span&#039;):addClass(&#039;tpl-doc__l…”</title>
		<link rel="alternate" type="text/html" href="https://cznwiki.com/index.php?title=%E6%A8%A1%E5%9D%97:Doc&amp;diff=6&amp;oldid=prev"/>
		<updated>2026-08-01T07:49:12Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“local p = {}  function p.main(frame)     local title = mw.title.getCurrentTitle()     local fullText = title.fullText     local docPageName = fullText .. &amp;#039;/doc&amp;#039;     local docTitle = mw.title.new(docPageName)      local html = mw.html.create(&amp;#039;div&amp;#039;):addClass(&amp;#039;tpl-doc&amp;#039;)      local header = html:tag(&amp;#039;div&amp;#039;):addClass(&amp;#039;tpl-doc__header&amp;#039;)     header:tag(&amp;#039;span&amp;#039;):addClass(&amp;#039;tpl-doc__title&amp;#039;):wikitext(&amp;#039;模板文档&amp;#039;)      local links = header:tag(&amp;#039;span&amp;#039;):addClass(&amp;#039;tpl-doc__l…”&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;
function p.main(frame)&lt;br /&gt;
    local title = mw.title.getCurrentTitle()&lt;br /&gt;
    local fullText = title.fullText&lt;br /&gt;
    local docPageName = fullText .. &amp;#039;/doc&amp;#039;&lt;br /&gt;
    local docTitle = mw.title.new(docPageName)&lt;br /&gt;
&lt;br /&gt;
    local html = mw.html.create(&amp;#039;div&amp;#039;):addClass(&amp;#039;tpl-doc&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
    local header = html:tag(&amp;#039;div&amp;#039;):addClass(&amp;#039;tpl-doc__header&amp;#039;)&lt;br /&gt;
    header:tag(&amp;#039;span&amp;#039;):addClass(&amp;#039;tpl-doc__title&amp;#039;):wikitext(&amp;#039;模板文档&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
    local links = header:tag(&amp;#039;span&amp;#039;):addClass(&amp;#039;tpl-doc__links&amp;#039;)&lt;br /&gt;
    links:wikitext(&amp;#039;&amp;lt;span class=&amp;quot;tpl-doc__link&amp;quot;&amp;gt;[[Special:EditPage/&amp;#039; .. fullText .. &amp;#039;|编辑模板]]&amp;lt;/span&amp;gt;&amp;#039;)&lt;br /&gt;
    links:wikitext(&amp;#039;&amp;lt;span class=&amp;quot;tpl-doc__link&amp;quot;&amp;gt;[[Special:EditPage/&amp;#039; .. docPageName .. &amp;#039;|编辑文档]]&amp;lt;/span&amp;gt;&amp;#039;)&lt;br /&gt;
    links:wikitext(&amp;#039;&amp;lt;span class=&amp;quot;tpl-doc__link&amp;quot;&amp;gt;[&amp;#039; .. tostring(mw.uri.fullUrl(fullText, {action = &amp;#039;purge&amp;#039;})) .. &amp;#039; 刷新模板]&amp;lt;/span&amp;gt;&amp;#039;)&lt;br /&gt;
    links:wikitext(&amp;#039;&amp;lt;span class=&amp;quot;tpl-doc__link&amp;quot;&amp;gt;[&amp;#039; .. tostring(mw.uri.fullUrl(docPageName, {action = &amp;#039;purge&amp;#039;})) .. &amp;#039; 刷新文档]&amp;lt;/span&amp;gt;&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
    local body = html:tag(&amp;#039;div&amp;#039;):addClass(&amp;#039;tpl-doc__body&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
    if docTitle and docTitle.exists then&lt;br /&gt;
        local content = docTitle:getContent()&lt;br /&gt;
        if content and content ~= &amp;#039;&amp;#039; then&lt;br /&gt;
            body:wikitext(frame:preprocess(content))&lt;br /&gt;
        else&lt;br /&gt;
            body:tag(&amp;#039;div&amp;#039;):addClass(&amp;#039;tpl-doc__empty&amp;#039;)&lt;br /&gt;
                :wikitext(&amp;#039;文档子页面存在但内容为空。请[[Special:EditPage/&amp;#039; .. docPageName .. &amp;#039;|补充内容]]。&amp;#039;)&lt;br /&gt;
        end&lt;br /&gt;
        html:wikitext(&amp;#039;[[Category:模板文档]]&amp;#039;)&lt;br /&gt;
    else&lt;br /&gt;
        local createUrl = tostring(mw.uri.fullUrl(docPageName, {&lt;br /&gt;
            action = &amp;#039;edit&amp;#039;,&lt;br /&gt;
            preload = &amp;#039;Template:Doc/preload&amp;#039;&lt;br /&gt;
        }))&lt;br /&gt;
        body:tag(&amp;#039;div&amp;#039;):addClass(&amp;#039;tpl-doc__empty&amp;#039;)&lt;br /&gt;
            :wikitext(&amp;#039;此模板尚无说明文档。请前往 [&amp;#039; .. createUrl .. &amp;#039; 创建文档子页面] 。&amp;#039;)&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    return tostring(html)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>律Rhyme</name></author>
	</entry>
</feed>