Module talk:Testcase table

Missing </th>?

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

%s%s

Should there be a closing before the closing ? —[AlanM1(talk)]— 23:10, 11 August 2013 (UTC)

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

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, {{Para|_rowheader}}), the result being:

class=wikitable

|+ _caption

! _header0

! _header1

! _header2

_rowheader

| {{template|{{{1}}}...}}

| {{template/sandbox|{{{1}}}...}}

It would be nice to specify the optional table {{Para|_class}}, too, and the header for that first column ({{Para|_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 {{tl|Testcase table top}}, {{tl|Testcase table row}}, {{tl|Testcase table bottom}} trio. —[AlanM1(talk)]—

: {{ping|AlanM1}} added these features. should the rowheader be in a {{tag|th}}? Frietjes (talk) 18:07, 12 August 2013 (UTC)

::{{Ping|Frietjes}} thanks! Let's see. This is the wikicode used to mark header rows (from Help:Table):

{{Col-begin|width=100%}}

{{Col-break|width=45%}}

class="wikitable"

|+ Multiplication table

scope="col" | ×

! scope="col" | 1

! scope="col" | 2

! scope="col" | 3

scope="row" | 1

| 1 || 2 || 3

scope="row" | 2

| 2 || 4 || 6

scope="row" | 3

| 3 || 6 || 9

scope="row" | 4

| 4 || 8 || 12

scope="row" | 5

| 5 || 10 || 15

{{Col-break|width=45%}}

class="wikitable"

|+ Multiplication table

scope="col" | ×

! scope="col" | 1

! scope="col" | 2

! scope="col" | 3

scope="row" | 1

| 1 || 2 || 3

scope="row" | 2

| 2 || 4 || 6

scope="row" | 3

| 3 || 6 || 9

scope="row" | 4

| 4 || 8 || 12

scope="row" | 5

| 5 || 10 || 15

{{Col-end}}

{{Clear}}

The resulting HTML looks like:

...

Multiplication table
× 1 2 3
1 1 2 3
2 2 4 6

so, yes, it seems you need {{Font|font=Lucida Console|bgcolor=#CFFFFF|text={{{_rowheader}}}}} in HTML or {{Font|font=Lucida Console|bgcolor=#FFCFCF|text=! scope="row" | {{{_rowheader}}}}} in WikiML. — Preceding unsigned comment added by 97.93.136.214 (talk) 17:19, 13 August 2013 (UTC)