[Home]TableSyntax

MeatballWiki | RecentChanges | Random Page | Indices | Categories

I'd like something that allowed me to make the WikiSyntax look readable without a wiki parser. To that end, MoinMoin is good. However, if one wants to write paragraphs worth of text in a table, things get icky.
I think something like the following could be parsed:
|  '''Heading1'''|     Heading2      |     Heading3                 |
=====================================================================
| I went to the  |     7             |  * Bullet lists              |
| barber today   |                   |  * Can be in here too        |
| and he gave me |                   |                              |
| a shave and a  |                   |                              |
| haircut.       |                   |                              |
---------------------------------------------------------------------
| New row        ||  LinkPattern in a cell that spans two columns   |
Whitespace is optional, but it makes it read better (even if it is harder to write). This is essentially the same as MoinMoin except that adjacent rows are concatenated into the same table cell until a row break is encounterd (the row of hyphens).

However, this is hard to implement. -- SunirShah


The MoinMoin syntax coupled with UseModWiki line continuations allow for a particularly readable layout for a table. For the above example:
|| Heading 1  || Heading 2  || Heading 3  ||
|| I went to the barber today and he gave me a shave and a haircut.  || 7  || No bullet lists, though. :(  ||
|| New row  |||| LinkPattern in a cell that spans two columns.  ||
NOTE: UseModWiki has a bug with the </pre> escaping, so you'll have to look at the page source until that is fixed.

giving

Heading 1 Heading 2 Heading 3
I went to the barber today and he gave me a shave and a haircut. 7 No bullet lists, though. :(
New row LinkPattern in a cell that spans two columns.

-- SunirShah

MoinMoin-style tables also lend themselves well to cell alignment, depending on whether you insert a space between the pipes and the text.

 ||left aligned ||
 || centre aligned ||
 || right aligned||

This sort of cell alignment would make the BiggestWiki table look better.


A Patch is Born for MoinMoin-style tables

See
UseMod:WikiPatches/TableSyntax
MoinMoin:HelpOnTables
TWiki:TWiki/TextFormattingRules
ZWiki:StructuredTextNGTableFormat
OpenWiki:HelpOnTables

I hope I'm not butting in here, but ZWiki uses tables almost identical to what you've got up top as the ideal. -- J B Bell

Likewise, they're in UnrealWiki's Wookee parser.


I've been thinking about how it might be possible to put bullet lists, headings etc. into tables. The key seems to be to relax the requirement that the row markup must be on a single line.

Unfortunately the current syntax would seem to get in the way of this as it would then be impossible to distinguish between row delimiters and column delimiters.

I thought I would make this point before UseMod:WikiPatches/TableSyntax gets incorporated into UseMod, and the syntax gets set in stone.

I've had a go at an alternative syntax to allow for this, comments are welcome ...

|| Heading 1  | Heading 2  | Heading 3  ||
|| I went to the barber today ...  |
* Bullet lists
* possible? | New Col ||
|| New row  |+ LinkPattern in a cell that spans two columns.  ||
|| New row  |++ A cell that spans three columns.  ||

-- DavidClaughton


Discussion

MeatballWiki | RecentChanges | Random Page | Indices | Categories
Edit text of this page | View other revisions
Search: