<?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=Template%3ATestcase%2Fdoc</id>
	<title>Template:Testcase/doc - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://arolstar52-zhtest.hf.space/index.php?action=history&amp;feed=atom&amp;title=Template%3ATestcase%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://arolstar52-zhtest.hf.space/index.php?title=Template:Testcase/doc&amp;action=history"/>
	<updated>2026-07-16T02:47:50Z</updated>
	<subtitle>在这个wiki上该页的修订历史</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://arolstar52-zhtest.hf.space/index.php?title=Template:Testcase/doc&amp;diff=3237246&amp;oldid=prev</id>
		<title>imported&gt;AromaTake：​/* Example */ 調整格式、排版</title>
		<link rel="alternate" type="text/html" href="https://arolstar52-zhtest.hf.space/index.php?title=Template:Testcase/doc&amp;diff=3237246&amp;oldid=prev"/>
		<updated>2025-07-30T08:10:51Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Example：​&lt;/span&gt; 調整格式、排版&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{NoteTA&lt;br /&gt;
|G1 = MediaWiki&lt;br /&gt;
}}&lt;br /&gt;
{{Documentation subpage}}&lt;br /&gt;
{{Template sandbox notice}}&amp;lt;!--only displayed when viewed from /sandbox page--&amp;gt;&lt;br /&gt;
&amp;lt;!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --&amp;gt;&lt;br /&gt;
{{for|an easier-to-use version of this template|Template:Test case}}&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
Use to compare a template with its sandbox.  Pass the raw code in nowikis as the first unnamed parameter; the existing template as the second, and the sandbox as the third.  The optional named parameter {{para|id}} is used as a heading (to describe the test being performed); if {{para|id}} is omitted, parameter 1 is used. The optional named parameter {{para|layout}} determines whether the live and sandbox outputs are displayed side by side or on top of each other. The default value is vertical (on top of each other). A value of horizontal will produce side by side output.&lt;br /&gt;
&lt;br /&gt;
If the pair of test codes in parameters 2 and 3 both produce the same output, then the test case is displayed in a collapsed table with a green heading.  If the test codes produce different output &amp;#039;&amp;#039;(this includes white space differences)&amp;#039;&amp;#039;, then the test is displayed in an uncollapsed table with a yellow heading.&lt;br /&gt;
&lt;br /&gt;
Note that some more complex templates may cause testcases to be highlighted even when their output is the same. The cause of this is under investigation...&lt;br /&gt;
&lt;br /&gt;
===Example===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=wikitext&amp;gt;{{testcase&lt;br /&gt;
|id=title and url&lt;br /&gt;
|layout=horizontal&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;{{citation|title=Test|url=http://example.org}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|{{citation        |title=Test|url=http://example.org}}&lt;br /&gt;
|{{citation/sandbox|title=Test|url=http://example.org}}&lt;br /&gt;
}}&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the sandbox code in parameter 3 gives the same output as the non-sandbox code in parameter 2:&lt;br /&gt;
&amp;lt;!--note, the code used in the examples below is simply to ensure that the output is always the same in the first example and different in the second - the output, not the code, is what matters.--&amp;gt;&lt;br /&gt;
{{testcase&lt;br /&gt;
|id=title and url&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;{{citation|title=Test|url=http://example.org}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|{{citation|title=Test|url=http://example.org}}&lt;br /&gt;
|{{citation|title=Test|url=http://example.org}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
If sandbox gives different output:&lt;br /&gt;
{{testcase&lt;br /&gt;
|id=title and url&lt;br /&gt;
|&amp;lt;nowiki&amp;gt;{{citation|title=Test|url=http://example.org}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|{{citation|title=Test|url=http://example.org}}&lt;br /&gt;
|{{citation|title=Test|url=http://example.org}} content of the differing output&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{#ifeq:{{SUBPAGENAME}}|sandbox||&amp;lt;!--&lt;br /&gt;
++++ PLEASE ADD CATEGORIES BELOW THIS LINE, INSIDE INCLUDEONLY TAGS, THANK YOU. --&amp;gt;&lt;br /&gt;
[[Category:模板页的模板]]&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>