<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.freecapitalists.org/index.php?action=history&amp;feed=atom&amp;title=Template%3ATestcase%2Fdoc</id>
	<title>Template:Testcase/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.freecapitalists.org/index.php?action=history&amp;feed=atom&amp;title=Template%3ATestcase%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.freecapitalists.org/index.php?title=Template:Testcase/doc&amp;action=history"/>
	<updated>2026-08-17T07:32:21Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://wiki.freecapitalists.org/index.php?title=Template:Testcase/doc&amp;diff=15496&amp;oldid=prev</id>
		<title>John James: Created page with &quot;{{Documentation subpage}} {{Wikipedia text|Template:Testcase/doc|416022475}} {{Template sandbox notice}}&lt;!--only displayed when viewed from /sandbox page--&gt; &lt;!-- PLEASE ADD CATEG...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.freecapitalists.org/index.php?title=Template:Testcase/doc&amp;diff=15496&amp;oldid=prev"/>
		<updated>2011-05-07T16:26:13Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Documentation subpage}} {{Wikipedia text|Template:Testcase/doc|416022475}} {{Template sandbox notice}}&amp;lt;!--only displayed when viewed from /sandbox page--&amp;gt; &amp;lt;!-- PLEASE ADD CATEG...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
{{Wikipedia text|Template:Testcase/doc|416022475}}&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;
&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;pre&amp;gt;{{testcase&lt;br /&gt;
|id=title and url&lt;br /&gt;
|layout=vertical&lt;br /&gt;
|&amp;amp;lt;nowiki&amp;gt;{{citation|title=Test|url=http://example.org}}&amp;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;/pre&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;&amp;lt;!--&lt;br /&gt;
++++ PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, INSIDE INCLUDEONLY TAGS, THANK YOU. --&amp;gt;&lt;br /&gt;
[[Category:Template namespace templates|{{PAGENAME}}]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>John James</name></author>
	</entry>
</feed>