<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://cs.zybkcn.com/w/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E5%9D%97%3ADocumentation%2Fwrapper</id>
	<title>模块:Documentation/wrapper - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://cs.zybkcn.com/w/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E5%9D%97%3ADocumentation%2Fwrapper"/>
	<link rel="alternate" type="text/html" href="https://cs.zybkcn.com/w/index.php?title=%E6%A8%A1%E5%9D%97:Documentation/wrapper&amp;action=history"/>
	<updated>2026-12-03T17:27:26Z</updated>
	<subtitle>本wiki上该页面的修订历史</subtitle>
	<generator>MediaWiki 1.47.0</generator>
	<entry>
		<id>https://cs.zybkcn.com/w/index.php?title=%E6%A8%A1%E5%9D%97:Documentation/wrapper&amp;diff=360&amp;oldid=prev</id>
		<title>鹿野耕云：创建页面，内容为“-- 包裹Module:Documentation不能直接被模板呼叫的函數 local mDocumentation = require(&#039;Module:Documentation&#039;) local getArgs = require(&#039;Module:Arguments&#039;).getArgs  return { 	wrapper = function (frame) 		local args = frame.args 		local method = args.method 		if 			not method 			or not mDocumentation[method] 			or method:match(&#039;^_&#039;) -- reject private function 		then 			return require(&#039;Module:Error&#039;).error({&#039;Can\&#039;t find method &quot;&#039; .. method .. &#039;&quot; in […”</title>
		<link rel="alternate" type="text/html" href="https://cs.zybkcn.com/w/index.php?title=%E6%A8%A1%E5%9D%97:Documentation/wrapper&amp;diff=360&amp;oldid=prev"/>
		<updated>2025-11-24T13:23:15Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“-- 包裹&lt;a href=&quot;/w/index.php?title=%E6%A8%A1%E5%9D%97:Documentation&quot; title=&quot;模块:Documentation&quot;&gt;Module:Documentation&lt;/a&gt;不能直接被模板呼叫的函數 local mDocumentation = require(&amp;#039;Module:Documentation&amp;#039;) local getArgs = require(&amp;#039;Module:Arguments&amp;#039;).getArgs  return { 	wrapper = function (frame) 		local args = frame.args 		local method = args.method 		if 			not method 			or not mDocumentation[method] 			or method:match(&amp;#039;^_&amp;#039;) -- reject private function 		then 			return require(&amp;#039;Module:Error&amp;#039;).error({&amp;#039;Can\&amp;#039;t find method &amp;quot;&amp;#039; .. method .. &amp;#039;&amp;quot; in […”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- 包裹[[Module:Documentation]]不能直接被模板呼叫的函數&lt;br /&gt;
local mDocumentation = require(&amp;#039;Module:Documentation&amp;#039;)&lt;br /&gt;
local getArgs = require(&amp;#039;Module:Arguments&amp;#039;).getArgs&lt;br /&gt;
&lt;br /&gt;
return {&lt;br /&gt;
	wrapper = function (frame)&lt;br /&gt;
		local args = frame.args&lt;br /&gt;
		local method = args.method&lt;br /&gt;
		if&lt;br /&gt;
			not method&lt;br /&gt;
			or not mDocumentation[method]&lt;br /&gt;
			or method:match(&amp;#039;^_&amp;#039;) -- reject private function&lt;br /&gt;
		then&lt;br /&gt;
			return require(&amp;#039;Module:Error&amp;#039;).error({&amp;#039;Can\&amp;#039;t find method &amp;quot;&amp;#039; .. method .. &amp;#039;&amp;quot; in [[Module:Documentation]].&amp;#039;})&lt;br /&gt;
		elseif&lt;br /&gt;
			mDocumentation[&amp;#039;_&amp;#039; .. method] -- reject private function&lt;br /&gt;
		then&lt;br /&gt;
			return require(&amp;#039;Module:Error&amp;#039;).error({&amp;#039;Please use &amp;lt;code&amp;gt;{{#invoke:[[Module:Documentation|Documentation]]|&amp;#039; .. method .. &amp;#039;|...}}&amp;lt;/code&amp;gt; instead.&amp;#039;})&lt;br /&gt;
		end&lt;br /&gt;
		local env = mDocumentation.getEnvironment(args)&lt;br /&gt;
		return mDocumentation[method](args, env)&lt;br /&gt;
	end&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>鹿野耕云</name></author>
	</entry>
</feed>