Content deleted Content added
Centralized Template talk:Testcase table |
m Replaced deprecated <source> tags with <syntaxhighlight> (via WP:JWB) |
||
Line 11:
== Table with many tests ==
For some templates, especially inline templates like {{tl|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
Line 24:
|_test10={1,1} |_label10=two equal parameters
}}
</syntaxhighlight>
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 (but possibly not the rows <code>|-</code>). — [[User:Crissov|Christoph]] [[User talk:Crissov|Päper]] 10:16, 1 January 2020 (UTC)
<
{| class="wikitable sortable"
|+ Test cases
Line 45:
{{test case|_format=cells|_template1=frac|_template3=sfrac|1|1|_label=two equal parameters}}
|}
</syntaxhighlight>
== Hyphen issue in [[Template:Test case nowiki]] ==
|