Twic I allows you to write a table. Wiki Tables are done with the | character, in a way somewhat similar to Wiki Lists: the start of each row is marked by a | at the beginning of the line, and a block is recognised as a table by the fact that it starts with a |. Tables are different to lists in that the | also serves to separate the cells in each row. Within the cells, the normal Wiki Text formatting rules work (italic, bold, Wiki Names, etc). The first row in a table is taken a heading.
The | character doesn't have a particularly exciting name (unlike #, which is officially known as an octothorpe); most people call it the 'vertical bar', although hackers nickname it the 'pipe'. Confusingly, it is often printed on the keyboard (and sometimes even on screen) as a broken pipe, sort of like it's been bred with a colon. As far as typing is concerned, | is often the shifted character on the backslash key (ie hold shift and hit backslash); the backslash key is at the bottom left of a standard 105-key keyboard, but may be on the middle right of a Mac keyboard. For more about the history of this character, consult <http://www.cs.tut.fi/~jkorpela/latin1/ascii-hist.html#7C>.
Let's have an example:
Author mb | Main genre | Most famous novel |
---|---|---|
Arthur C Clarke | Hard SF (well, hardish) | 2001: a space odyssey |
Peter F Hamilton | Space Opera | The reality dysfunction |
Ken Mc Leod | Political Cyber Punk/Hard SF | The star fraction |
Larry Niven | Imperialist Space Opera | Ringworld |
Greg Egan | Hard SF | Axiomatic (short stories) |
Note that although you don't need trailing |s, you can have them if you like:
Genre | Judgement |
---|---|
SF | Good |
Fantasy | Good |
Mainstream | Bad |
Western | Ugly |
Note that you also don't need so much whitespace:
Genre | Time |
---|---|
Space Opera | Future |
Cyber Punk | Near future |
Fantasy | Present or N/A |
Hard SF | Any |
In addition, since row boundaries are determined by the presence of a | right at the start of a line, it is possible to spread rows over several lines by judicious use of spaces, like so:
Film | Heroes | Villains |
---|---|---|
Blade Runner | Rick Deckard, JF Sebastian, Dr Tyrell, Rachael Tyrell | Roy Baty, Leon, Pris, Zhora |
The Matrix | Neo, Morpheus, Trinity, Switch, Tank | Cipher, various agents |
Die Another Day | James Bond, Jinx | Miss Frost, Gustav Graves |
You may wonder what very small tables look like. They look like this:
One cell only |
---|
One | Row | Only |
---|
One |
---|
Column |
Only |
Originally, the HTML that Twic I generated uses minimalistic markup for tables; this have a fairly elegant look, but it could be a little hard on the eye. Thus, a simple border was added. This change is under review.
Thu, 01 Apr 2004 14:38:05 GMT | Front Page | Recent Changes | Message Of The Day |