Last modified: 2013-01-08 13:23:04 UTC
Trying to create a table within another table, be it using wikitables or plain HTML tables, will break the syntax of the outermost table. For example, this code: {| |- | New table: {| | Table within a table |} || This be a new cell |} As well as this code: {| |- | New table: <table> <tr><td> Table within a table</td></tr> </table> || This be a new cell |} Will both render as: <table> <tr> <td>New table: <table> <tr> <td>Table within a table</td> </tr> </table> || This be a new cell</td> </tr> </table> The || is rendered as plain text, instead of table syntax. However, it will be rendered correctly if a line break is inserted right after the innermost table: {| |- | New table: <table> <tr><td> Table within a table</td></tr> </table> | This be a new cell |} Will render as expected: <table> <tr> <td>New table: <table> <tr> <td>Table within a table</td> </tr> </table> </td> <td>This be a new cell</td> </tr> </table> This is especially annoying when transcluding templates which have tables themselves, as one cannot be sure that those templates have line breaks after a table, and is so forced to insert one.
This is still an issue. I've tried the above test cases and they behave as described above (i.e. The two cases mentioned will render a broken table, but if you move the '||' to a new line, the code will render correctly). I'll attach two images to show what it looks like. The images will show the code and the the table the code produces.
Created attachment 11588 [details] Image showing how a wikitable embedded in another wikitable renders This image shows how a wikitable embedded in another wikitable renders incorrectly and how moving '||' to another line renders the correct table.
Created attachment 11589 [details] This image shows how an html table embedded in a wikitable renders This image shows how an html table embedded in a wikitable renders incorrectly and how moving '||' to another line renders the correct table.
[bumping Version field as per last comment - thanks for retesting]