Jump to content

Module talk:Testcase table

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Frietjes (talk | contribs) at 18:07, 12 August 2013 (Add row header param). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Missing </th>?

The format string for the HTML code for the table heading row looks like:

<tr><th style="width:50%%">%s</th><th style="width:50%%">%s</tr>

Should there be a closing </th> before the closing </tr>? —[AlanM1(talk)]— 23:10, 11 August 2013 (UTC)[reply]

fixed, thank you for finding the bug. Frietjes (talk) 17:55, 12 August 2013 (UTC)[reply]

Add row header param

It would be nice to be able to insert a column in front of the two template result columns (i.e. a row header, |_rowheader=), the result being:

_caption
_header0 _header1 _header2
_rowheader {{template|{{{1}}}...}} {{template/sandbox|{{{1}}}...}}

It would be nice to specify the optional table |_class=, too, and the header for that first column (|_header0=). Caption and header rows should not appear if not specified. I realize I might be asking to cram more into this template than it's intended for, too. Like maybe something more suited to a {{Testcase table top}}, {{Testcase table row}}, {{Testcase table bottom}} trio. —[AlanM1(talk)]—

@AlanM1: added these features. should the rowheader be in a <th>...</th>? Frietjes (talk) 18:07, 12 August 2013 (UTC)[reply]