<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://www.wikiw.cn/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://www.wikiw.cn/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://www.wikiw.cn/index.php?title=%E6%A8%A1%E5%9D%97:Documentation/wrapper&amp;action=history"/>
	<updated>2026-04-08T20:48:37Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://www.wikiw.cn/index.php?title=%E6%A8%A1%E5%9D%97:Documentation/wrapper&amp;diff=2212&amp;oldid=prev</id>
		<title>2023年8月6日 (日) 12:23 imported&gt;SunAfterRain</title>
		<link rel="alternate" type="text/html" href="https://www.wikiw.cn/index.php?title=%E6%A8%A1%E5%9D%97:Documentation/wrapper&amp;diff=2212&amp;oldid=prev"/>
		<updated>2023-08-06T12:23:54Z</updated>

		<summary type="html">&lt;p&gt;&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>imported&gt;SunAfterRain</name></author>
	</entry>
</feed>