<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh">
	<id>https://arolstar52-zhtest.hf.space/index.php?action=history&amp;feed=atom&amp;title=Module%3ATemplate_test_case%2Fdoc</id>
	<title>Module:Template test case/doc - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://arolstar52-zhtest.hf.space/index.php?action=history&amp;feed=atom&amp;title=Module%3ATemplate_test_case%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://arolstar52-zhtest.hf.space/index.php?title=Module:Template_test_case/doc&amp;action=history"/>
	<updated>2026-06-26T14:53:44Z</updated>
	<subtitle>在这个wiki上该页的修订历史</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://arolstar52-zhtest.hf.space/index.php?title=Module:Template_test_case/doc&amp;diff=3532047&amp;oldid=prev</id>
		<title>imported&gt;AromaTake：​/* 追蹤分類 */ 增加內部連結</title>
		<link rel="alternate" type="text/html" href="https://arolstar52-zhtest.hf.space/index.php?title=Module:Template_test_case/doc&amp;diff=3532047&amp;oldid=prev"/>
		<updated>2026-01-07T09:16:11Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;追蹤分類：​&lt;/span&gt; 增加內部連結&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&amp;lt;!-- 在本行下編輯模組說明 --&amp;gt;&lt;br /&gt;
This module provides a framework for making templates which produce a [[WP:TESTCASES|template test case]]. While test cases can be made manually, using Lua-based templates such as the ones provided by this module has the advantage that the template arguments only need to be input once, thus reducing the effort involved in making test cases and reducing the possibility of errors in the input.&lt;br /&gt;
&lt;br /&gt;
== 使用方式 ==&lt;br /&gt;
&lt;br /&gt;
This module should not usually be called directly. Instead, you should use one of the following templates:&lt;br /&gt;
&lt;br /&gt;
Parameter-based templates:&lt;br /&gt;
* [[Template:Test case]] – for standard test cases&lt;br /&gt;
* [[Template:Testcase table]] – for test cases arranged side by side in columns&lt;br /&gt;
* [[Template:Testcase rows]] – for test cases arranged as rows in a table&lt;br /&gt;
* [[Template:Collapsible test case]] – for test cases that are collapsed by default if the results are the same&lt;br /&gt;
* [[Template:Inline test case]] – for test cases with small invocations and small output, that do not contain any line breaks&lt;br /&gt;
The only difference between these templates is their default arguments. For example, it is possible to display test cases side by side in [[Template:Testcase rows]] by specifying {{para|_format|columns}}&lt;br /&gt;
&lt;br /&gt;
Nowiki-based templates:&lt;br /&gt;
* [[Template:Test case nowiki]] – for test cases created from template code wrapped in nowiki tags (useful for displaying complex template invocations)&lt;br /&gt;
* [[Template:Nowiki template demo]] – for use in template documentation&lt;br /&gt;
&lt;br /&gt;
It is also possible to use a format of &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:template test case|main|&amp;lt;/nowiki&amp;gt;&amp;#039;&amp;#039;parameters&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;}}&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. This uses the same defaults as [[Template:Test case]]; please see that page for documentation of the parameters.&lt;br /&gt;
&lt;br /&gt;
There is no direct interface to this module for other Lua modules. Lua modules should generally use Lua-based test case modules such as [[Module:UnitTests]] or [[Module:ScribuntoUnit]]. If it is really necessary to use this module, you can use [[mw:Extension:Scribunto/Lua reference manual#frame:expandTemplate|frame:expandTemplate]] with one of the templates listed above.&lt;br /&gt;
&lt;br /&gt;
== 配置 ==&lt;br /&gt;
&lt;br /&gt;
This module has a configuration module at [[Module:Template test case/config]]. You can edit it to add new wrapper templates, or to change the messages that the module outputs.&lt;br /&gt;
&lt;br /&gt;
== 追蹤分類 ==&lt;br /&gt;
* {{clc|Test cases using heading parameters}}&lt;br /&gt;
* {{clc|Test cases using output parameter}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!-- 本行下加入模組的分類 --&amp;gt;&lt;br /&gt;
[[Category:添加追踪分类的模块]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;AromaTake</name></author>
	</entry>
</feed>