hmmm. That’s still a very valid discussion. …
— no rant, just some thoughts —
The main problem with tables is, that they are a complex element. A HTML table consists of up to 8 different elements and all of them can be styled using classes. Some elements have special attributes eg: scope="col"
or scope="row"
for TH elements. TD cells can span
columns and or rows …
- A table cell is defined using the TD element
- A table knows about “rows” with the TR element
- It knows about columns with and COL element
- It knows about column-groups … COLGROUP element
- THEAD and TH define header elements but are different in nature
- TFOOT is the table footer
The CSS knows about :nth() element which I did use with a little experiment described at the GG
TW defines classes to TR elements evenRow
and oddRow
which typically is used to define a gray background to every other row for better readability.
So it’s close to impossible to describe a table with wikitext, if “data” and “style” should be done with the same syntax.
TW defines “the basics” … but for very complex tables we need to go back to HTML syntax and CSS because that’s the only way to have full control.