I don't see table headers used a lot in wikipedia, so maybe its own markup could become too confusing. Could that be solved by
{| |class=header|The header text |- |Just a cell |}
Is there a special function for <th> anyway, or is it just the visual difference? In that case, we wouldn't need <th> at all, but could do with a <td> CSS class (like above).
But, if there's a demand for a <th> equivalent, I'll add one. Someone suggested using == Headers == in the table markup makes <th> tags.
Summary of possible solutions: 1. Ignore <th> completely 2. Make a special tag ("!" or "|:" or something) 3. Use "| == Text ==" as "<th>Text</th>"
What's it gonna be? :-)
Magnus
P.S.: Seems someone wiped the stylesheet definitions for the floating-right image from the test site. Too bad.
Gutza wrote:
How about adding support for
{| ! Table header 1 ! Table header 2 |- | Table content 1 | Table content 2 |}
To generate proper table headers as specified by HTML 4.0? Also, you could start a header row using
{| !- | Table header 1 | Table header 2 |- | Table content 1 | Table content 2 |}
because a proper implementation of the markup shouldn't echo the first
<TR> only after encountering the first content tag, so encountering a "!-" before that could echo the proper HTML header tags.
Gutza
Magnus Manske wrote:
OK, anyone opposed to
- wiki table markup *in general*
- the *markup style* I use at test.wikipedia.org
- my *implementation* of that style
please speak up now! Otherwise, I'll commit it to the stable branch of the software, which means it will go online with the next update.
Magnus
Wikipedia-l mailing list Wikipedia-l@Wikipedia.org http://mail.wikipedia.org/mailman/listinfo/wikipedia-l
Wikipedia-l mailing list Wikipedia-l@Wikipedia.org http://mail.wikipedia.org/mailman/listinfo/wikipedia-l