<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hant-TW">
	<id>https://www.micropedia.site/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E7%B5%84%3ADocumentation%2Fwrapper</id>
	<title>模組:Documentation/wrapper - 修訂紀錄</title>
	<link rel="self" type="application/atom+xml" href="https://www.micropedia.site/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E7%B5%84%3ADocumentation%2Fwrapper"/>
	<link rel="alternate" type="text/html" href="https://www.micropedia.site/index.php?title=%E6%A8%A1%E7%B5%84:Documentation/wrapper&amp;action=history"/>
	<updated>2026-09-23T23:07:52Z</updated>
	<subtitle>本 wiki 上此頁面的修訂紀錄</subtitle>
	<generator>MediaWiki 1.45.0-alpha</generator>
	<entry>
		<id>https://www.micropedia.site/index.php?title=%E6%A8%A1%E7%B5%84:Documentation/wrapper&amp;diff=25030&amp;oldid=prev</id>
		<title>LarryChou：​建立內容為「-- 包裹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; i…」的新頁面</title>
		<link rel="alternate" type="text/html" href="https://www.micropedia.site/index.php?title=%E6%A8%A1%E7%B5%84:Documentation/wrapper&amp;diff=25030&amp;oldid=prev"/>
		<updated>2024-06-15T12:06:58Z</updated>

		<summary type="html">&lt;p&gt;建立內容為「-- 包裹&lt;a href=&quot;/wiki/%E6%A8%A1%E7%B5%84: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; i…」的新頁面&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>LarryChou</name></author>
	</entry>
</feed>