<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hant-TW">
	<id>https://encyclo-sanctum.encyclato.org/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E7%B5%84%3ACallAssert</id>
	<title>模組:CallAssert - 修訂紀錄</title>
	<link rel="self" type="application/atom+xml" href="https://encyclo-sanctum.encyclato.org/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E7%B5%84%3ACallAssert"/>
	<link rel="alternate" type="text/html" href="https://encyclo-sanctum.encyclato.org/index.php?title=%E6%A8%A1%E7%B5%84:CallAssert&amp;action=history"/>
	<updated>2026-09-17T16:15:42Z</updated>
	<subtitle>本wiki上此頁面的修訂紀錄</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://encyclo-sanctum.encyclato.org/index.php?title=%E6%A8%A1%E7%B5%84:CallAssert&amp;diff=555&amp;oldid=prev</id>
		<title>LatO：​已匯入 1 筆修訂</title>
		<link rel="alternate" type="text/html" href="https://encyclo-sanctum.encyclato.org/index.php?title=%E6%A8%A1%E7%B5%84:CallAssert&amp;diff=555&amp;oldid=prev"/>
		<updated>2026-09-17T09:29:00Z</updated>

		<summary type="html">&lt;p&gt;已匯入 1 筆修訂&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&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-Hant-TW&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年9月17日 (四) 09:29的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;zh-Hant-TW&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;（無差異）&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key mediawiki:diff:1.41:old-554:rev-555 --&gt;
&lt;/table&gt;</summary>
		<author><name>LatO</name></author>
	</entry>
	<entry>
		<id>https://encyclo-sanctum.encyclato.org/index.php?title=%E6%A8%A1%E7%B5%84:CallAssert&amp;diff=554&amp;oldid=prev</id>
		<title>國家模板&gt;Xiplus-abot：​已更改“Module:CallAssert”的保护设置：​高風險模板：115539引用&lt;!-- 機器人3 --&gt;（[编辑=仅允许管理员]（无限期）[移动=仅允许管理员]（无限期））</title>
		<link rel="alternate" type="text/html" href="https://encyclo-sanctum.encyclato.org/index.php?title=%E6%A8%A1%E7%B5%84:CallAssert&amp;diff=554&amp;oldid=prev"/>
		<updated>2024-01-08T20:58:29Z</updated>

		<summary type="html">&lt;p&gt;已更改“&lt;a href=&quot;/index.php/%E6%A8%A1%E7%B5%84:CallAssert&quot; title=&quot;模組:CallAssert&quot;&gt;Module:CallAssert&lt;/a&gt;”的保护设置：​高風險模板：115539引用&amp;lt;!-- &lt;a href=&quot;/index.php?title=%E4%BD%BF%E7%94%A8%E8%80%85:Xiplus-abot/task/3&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;使用者:Xiplus-abot/task/3（頁面不存在）&quot;&gt;機器人3&lt;/a&gt; --&amp;gt;（[编辑=仅允许管理员]（无限期）[移动=仅允许管理员]（无限期））&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新頁面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local function pack(...)&lt;br /&gt;
	return {...}, select(&amp;#039;#&amp;#039;, ...)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function mapArray(func, array, count)&lt;br /&gt;
	local result = {}&lt;br /&gt;
	for i = 1, count or #array do&lt;br /&gt;
		result[i] = func(array[i])&lt;br /&gt;
	end&lt;br /&gt;
	return result&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function quote(value)&lt;br /&gt;
	if type(value) == &amp;#039;string&amp;#039; then&lt;br /&gt;
		return (string.gsub(string.format(&amp;#039;%q&amp;#039;, value), &amp;#039;\\\n&amp;#039;, &amp;#039;\\n&amp;#039;))  -- Outer parentheses remove second value returned by gsub&lt;br /&gt;
	end&lt;br /&gt;
	local str = tostring(value)&lt;br /&gt;
	if type(value) == &amp;#039;table&amp;#039; and str ~= &amp;#039;table&amp;#039; then&lt;br /&gt;
		return &amp;#039;{&amp;#039; .. str .. &amp;#039;}&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
	return str&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function callAssert(func, funcName, ...)&lt;br /&gt;
	local result, resultCount = pack(func(...))&lt;br /&gt;
	if not result[1] then&lt;br /&gt;
		local args, argsCount = pack(...)&lt;br /&gt;
		args = mapArray(quote, args, argsCount)&lt;br /&gt;
		local message = mw.ustring.format(&lt;br /&gt;
			&amp;#039;%s(%s) failed&amp;#039;,&lt;br /&gt;
			funcName,&lt;br /&gt;
			table.concat(args, &amp;#039;, &amp;#039;)&lt;br /&gt;
		)&lt;br /&gt;
		error(message, 2)&lt;br /&gt;
	end&lt;br /&gt;
	return unpack(result, 1, resultCount)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return callAssert&lt;/div&gt;</summary>
		<author><name>國家模板&gt;Xiplus-abot</name></author>
	</entry>
</feed>