Module talk:Template test case: Difference between revisions

Content deleted Content added
Line 16:
|_test8={2=1,3=2}|_label8=second and third parameter
|_test9={a} |_label9=single anonymous parameter, alphabetic
 
|_test10={1,1} |_label10=two equal parameters
}}
</source>
11:14, 20 September 2019 (UTC)
: Alternatively, there should be an additional rendering mode ''cells''. It would put the code and each result for all templates and sandbox versions into adjacent cells in a single table row, but the user would have to provide the surrounding table code, i.e.(but <code>{|</code>possibly andnot the rows <code>|}-</code> in the most basic case). — [[User:Crissov|Christoph]] [[User talk:Crissov|Päper]] 10:16, 1 January 2020 (UTC)
<source lang=mediawiki>
{| class="wikitable sortable"
|+ Test cases
{{test case|_format=cells|_template1=frac|_template3=sfrac|1|_label=single anonymous parameter, numeric}}
{{test case|_format=cells|_template1=frac|_template3=sfrac|1|2|_label=two anonymous parameters, all numeric}}
{{test case|_format=cells|_template1=frac|_template3=sfrac|1|2|3|_label=three anonymous parameters, all numeric}}
{{test case|_format=cells|_template1=frac|_template3=sfrac|1=1|_label=single, first parameter}}
{{test case|_format=cells|_template1=frac|_template3=sfrac|2=1|_label=single, second parameter}}
{{test case|_format=cells|_template1=frac|_template3=sfrac|3=1|_label=single, third parameter}}
{{test case|_format=cells|_template1=frac|_template3=sfrac|1|3=2|_label=first and third parameter}}
{{test case|_format=cells|_template1=frac|_template3=sfrac|2=1|3=2|_label=second and third parameter}}
{{test case|_format=cells|_template1=frac|_template3=sfrac|a|_label=single anonymous parameter, alphabetic}}
{{test case|_format=cells|_template1=frac|_template3=sfrac|1|1|_label=two equal parameters}}
|}
</source>