<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.sasgaming.net/index.php?action=history&amp;feed=atom&amp;title=Template%3ADW%2FTest_case%2Fdoc</id>
	<title>Template:DW/Test case/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.sasgaming.net/index.php?action=history&amp;feed=atom&amp;title=Template%3ADW%2FTest_case%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.sasgaming.net/index.php?title=Template:DW/Test_case/doc&amp;action=history"/>
	<updated>2026-04-11T02:09:48Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.sasgaming.net/index.php?title=Template:DW/Test_case/doc&amp;diff=37906&amp;oldid=prev</id>
		<title>imported&gt;Im Wired In at 23:16, 23 April 2025</title>
		<link rel="alternate" type="text/html" href="https://wiki.sasgaming.net/index.php?title=Template:DW/Test_case/doc&amp;diff=37906&amp;oldid=prev"/>
		<updated>2025-04-23T23:16:04Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation}}&lt;br /&gt;
&lt;br /&gt;
This template generates a test case for two or more templates. Each template is called with the same parameters, and the test case can be displayed in various different formats.&lt;br /&gt;
&lt;br /&gt;
All parameters passed to this template are passed through to the test-case templates, except for parameters starting with an underscore character (&amp;quot;_&amp;quot;), which are reserved for internal use.&lt;br /&gt;
&lt;br /&gt;
If no templates are specified explicitly, the module uses the base page of the current page as the first template, and its /sandbox subpage as the second template. If only one template is specified explicitly, its /sandbox subpage is used as the second template.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Basic syntax&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{test case&lt;br /&gt;
| [param1] = [value1]&lt;br /&gt;
| [param2] = [value2]&lt;br /&gt;
| [param3] = [value3]&lt;br /&gt;
...&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Common syntax&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
The following options will work with all different test case formats.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{test case&lt;br /&gt;
| _format      = &lt;br /&gt;
| _output      = &lt;br /&gt;
| _collapsible = &lt;br /&gt;
| _resetRefs   = &lt;br /&gt;
| _code        = &lt;br /&gt;
| _showcode    = &lt;br /&gt;
&lt;br /&gt;
| _template  = &lt;br /&gt;
| _template1 = &lt;br /&gt;
| _heading1  = &lt;br /&gt;
| _template2 = &lt;br /&gt;
| _heading2  = &lt;br /&gt;
| _template3 = &lt;br /&gt;
| _heading3  = &lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
| [param1] = [value1]&lt;br /&gt;
| [param2] = [value2]&lt;br /&gt;
| [param3] = [value3]&lt;br /&gt;
...&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some test case formats accept additional parameters as well. See their sections for documentation.&lt;br /&gt;
&lt;br /&gt;
== Common parameters ==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Parameter !! Description&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;_format&amp;lt;/code&amp;gt; || The format used to display the test cases. This can be &amp;quot;[[#Columns|columns]]&amp;quot;, &amp;quot;[[#Rows and tablerows|rows]]&amp;quot;, &amp;quot;[[#Rows and tablerows|tablerows]]&amp;quot;, &amp;quot;[[#Inline|inline]]&amp;quot; or &amp;quot;[[#Default|default]]&amp;quot;.  &lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;_output&amp;lt;/code&amp;gt; || Allows changes in how the template&amp;#039;s output is displayed. The default output is displayed when the &amp;lt;code&amp;gt;_output&amp;lt;/code&amp;gt; parameter is not specified or when it is set to any unsupported value. A [[Special:MyLanguage/Help:Formatting#Text formatting markup|nowiki]] version of the template&amp;#039;s output is displayed when {{para|_output|nowiki}}; this is helpful when there are differences in the underlying [[Help:Wikitext|wikitext]] which are not visible in the default output. Both the default output and nowiki version are displayed when {{para|_output|nowiki+}}.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;_collapsible&amp;lt;/code&amp;gt; || If set to &amp;quot;y&amp;quot; or &amp;quot;yes&amp;quot;, the test case is made collapsible. The test case is collapsed and given a green heading if all the template outputs are the same. If any of the template outputs differ, the test case is expanded and given a yellow heading. See [[#Collapsible test cases]] for other parameters which only work when _collapsible is enabled.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;_template1&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;_template2&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;_template3&amp;lt;/code&amp;gt;... || The names of the templates to be processed. The default of _template1 is the base page of the current page. If _template1 is specified, the default for _template2 is its /sandbox subpage; if not, the default for _template2 is the /sandbox subpage of the base page of the current page. Template names should be entered as you would use them in a normal template invocation, i.e. &amp;quot;2x&amp;quot;, not &amp;quot;Template:2x&amp;quot;. If you need to test a page in the main namespace you can use a colon prefix, i.e. &amp;quot;:&amp;#039;&amp;#039;article name&amp;#039;&amp;#039;&amp;quot;.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;_template&amp;lt;/code&amp;gt; || An alias for _template1. If both _template and _template1 are specified, _template will take precedence.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;_showtemplate1&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;_showtemplate2&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;_showtemplate3&amp;lt;/code&amp;gt;... || If this is set to &amp;quot;no&amp;quot;, then no output is shown for that template. This is useful if you only want to show the main template, or if you only want to show the sandbox template.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;_heading1&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;_heading2&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;_heading3&amp;lt;/code&amp;gt;... || Custom headings for each of the templates.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;_showheader&amp;lt;/code&amp;gt; || If this is set to &amp;quot;n&amp;quot; or &amp;quot;no&amp;quot;, then no headers are shown.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;_resetRefs&amp;lt;/code&amp;gt; || If set to &amp;quot;y&amp;quot; or &amp;quot;yes&amp;quot;, any references generated by the templates tested are reset after each template is expanded.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;_showcode&amp;lt;/code&amp;gt; || Show the template code used to make the test case. If an invocation is specified with the _code parameter, then that is used. Otherwise, an approximation is generated from the arguments. This approximation is not perfect - white space in named arguments is lost, and duplicate arguments are ignored - but it should be fine for template code that is input all on one line without spaces between parameters.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;_code&amp;lt;/code&amp;gt; || Used to specify template code inside {{tag|nowiki}} tags. This is used with the _showcode option to display the template invocation while preserving white space. You must use the magic word &amp;quot;__TEMPLATENAME__&amp;quot; instead of the template name. For example: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;| _code = &amp;amp;lt;nowiki&amp;amp;gt;{{__TEMPLATENAME__|first|second|foo=bar}}&amp;amp;lt;/nowiki&amp;amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. &amp;lt;p&amp;gt;Note: due to the way nowiki tags work, the template treats the [[w:HTML entities|HTML entities]] &amp;amp;amp;lt;, &amp;amp;amp;gt; and &amp;amp;amp;quot; as if they were the literal characters &amp;amp;lt;, &amp;amp;gt; and &amp;amp;quot; when used with this parameter.&amp;lt;/p&amp;gt;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>imported&gt;Im Wired In</name></author>
	</entry>
</feed>