Module talk:Template test case
Appearance
Multiple automatic sandbox versions
Can we please extend the automatic addition of a /sandbox
variant to all _templatei
s if there is no _template++i
?
— Christoph Päper 11:14, 20 September 2019 (UTC)
Table with many tests
For some templates, especially inline templates like {{frac}}, it makes sense to have all or most test cases in a single table with one combination of parameters per row. It would be nice if this could be handled by a single function call by passing multiple parameter sets, e.g.:
{{test case|_template1=frac|_template3=sfrac
|_test1={1} |_label1=single anonymous parameter, numeric
|_test2={1,2} |_label2=two anonymous parameters, all numeric
|_test3={1,2,3} |_label3=three anonymous parameters, all numeric
|_test4={1=1} |_label4=single, first parameter
|_test5={2=1} |_label5=single, second parameter
|_test6={3=1} |_label6=single, third parameter
|_test7={1,3=2} |_label7=first and third parameter
|_test8={2=1,3=2}|_label8=second and third parameter
|_test9={a} |_label9=single anonymous parameter, alphabetic
|_test10={1,1} |_label10=two equal parameters
}}
11:14, 20 September 2019 (UTC)