I've copied this reference into my wiki and things look pretty much the same in my wiki as it does here. I decided to try to make a table with the wiki markup and noticed that the if I copy the wiki markup code into a page, it looks different - specifically, the underlines are missing under the cells. For example, if I take the code from the first column & row and paste it below, it doesn't look like it does on the main page.
{|
| Cell 1.1
| Cell 1.2
|-
| Cell 2.1
| Cell 2.2
|}
| Cell 1.1 | Cell 1.2 |
| Cell 2.1 | Cell 2.2 |
I believe the problem is related to the CSS. The wikimarkup in the Tables Reference is inheriting the CSS from the class "tablerow", but when the wikimarkup is copied into a new page, like this comment, there is nothing to inherit.
Is there a way to break the inheritance so what you see is what you get?P.S. I figured that you can specify the class in the wikimarkup as follows and it works, but this isn't related to my question.
{|
|- class="tablerow"
| Cell 1.1
| Cell 1.2
|- class="tablerow"
| Cell 2.1
| Cell 2.2
|}
| Cell 1.1 | Cell 1.2 |
| Cell 2.1 | Cell 2.2 |