Last modified: 2011-03-13 18:06:52 UTC
in the documentation it seems to mention that {| | A !! B || C |} have to be transformed in <table> <tr> <td>A</td> <th>B</th> <td>C</td> </tr> </table> but it doen't work may be a better syntax could be {| | A |! B !| C |} to be equivalent to {| | A ! B | C |}
> in the documentation it seems to mention that It does not say that on http://meta.wikimedia.org/wiki/Help:Table. I think this is expected behaviour. If you do something like this: {| ! cell 1 || cell 2 || cell 3 |} then all the cells in this row become <th>s. Essentially, this means that if you want a <th>, you have to start a row with a !.
ok so the documentation doen't mention that... But as <th> is a cell marquer and not a line marquer it will be great to have this feature working but it has to change the way it works now {| ! A !| B |! C |} would look like <table> <tr> <th>A</th> <td>B</td> <th>C</th> </tr> </table> and {| ! A || B || C |} which have to be equivalent to {| ! A !| B || C |} will have to look like <table> <tr> <th>A</th> <td>B</td> <td>C</td> </tr> </table> instead of <table> <tr> <th>A</th> <th>B</th> <th>C</th> </tr> </table>
I'm tempted to mark this "wontfix", because this seems to me a fairly unusual requirement, and the below works fine: {| | A ! B | C |} For now, I'll just mark it as "severity:enhancement". I'm also removing keyword "parser", as writing a new parser wouldn't solve this because it is not a feature that doesn't work, it's one that hasn't been written.
Created attachment 3494
Created attachment 3495
Created attachment 3496
Created attachment 3497
Created attachment 3498
Created attachment 3499
Created attachment 3500
Created attachment 3501
Created attachment 3502
Created attachment 3503
Created attachment 3504
Comment on attachment 3499
Comment on attachment 3500
Comment on attachment 3494 squish
Closed per comment #3 and the lack of responses since.