Edgewall Software

Ticket #1424 (new enhancement)

Opened 4 years ago

Last modified 19 months ago

MediaWiki-style table syntax support

Reported by: xris@… Owned by: jonas
Priority: normal Milestone: 1.0
Component: wiki system Version: 0.8.1
Severity: normal Keywords:
Cc:

Description

Just a personal preference, but I really like mediawiki's formatting styles for lists and tables (lists, because they make more sense to me, and tables because they're more powerful than trac's implementation).. (by tables, I mean the pipe-format, not the html or pseudo-html formats).

http://en.wikipedia.org/wiki/How_to_edit

Attachments

Change History

Changed 4 years ago by mgood

  • summary changed from request -- match mediawiki's list and table formatting to MediaWiki-style table syntax support

MediaWiki's pipe table syntax seems decent and supports more sophisticated formatting than the basic table support in Trac now. It seems distinct enough that it could be supported in a way that also allows backwards compatibility with the current table syntax (though if a new table syntax is added, the old one should probably be deprecated at a later time).

I think that the syntax of starting numbered lists with a # would cause formatting problems or confusion with Trac ticket references. Supporting MediaWiki-style syntax for bulleted lists would then be inconsistent, and I don't see a distinct advantage of the syntax, so I don't think that it would make sense to support either of the list syntaxes.

Changed 4 years ago by cboos

I also prefer Trac's list syntax to MediaWiki's one. In MediaWiki, you can't get multi-line items: a newline marks the end of the item.

About the Table syntax: sure, it's more powerful, but how does it compare with table written using WikiRestructuredText? One can always have an embedded block of {{{!rst }}} for getting more complex content, e.g.

Header 1 Header 2 Header 3
body row 1 column 2 column 3
body row 2 RestructuredText
body row 3 Cells may span rows.
  • Cells
  • contain
  • blocks.
body row 4

Besides, if we would enhance Trac's own table syntax, we should rather consider the MoinMoin's table syntax, for consistency with the rest of the Wiki syntax.

Changed 4 years ago by cboos

Note: the above table was obtained with the following markup:

{{{
#!rst
+------------+------------+-----------+
| Header 1   | Header 2   | Header 3  |
+============+============+===========+
| body row 1 | column 2   | column 3  |
+------------+------------+-----------+
| body row 2 |`RestructuredText`:trac:|
+------------+------------+-----------+
| body row 3 | Cells may  | - Cells   |
+------------+ span rows. | - contain |
| body row 4 |            | - blocks. |
+------------+------------+-----------+
}}}

Changed 3 years ago by werner.krauss@…

I like wackos way of making tables very easy:

http://wackowiki.com/WackoDocDeutsch/Formatierung?v=18ix#h7949-10 (sorry, i only find german description atm)

one tag for start and end of table (# and #) row begins and ends with table cell seperator is |

and the best: rows can be in more lines like

|| cell 1
|cell 2
still cell2
||

this way you can easily make quite complicate tables using wiki syntax.

hth

werner

Changed 2 years ago by cboos

  • milestone set to 1.0

Improved table support (esp. multi-line cells with arbitrary content) should definitely be on the feature list of 1.0 (if not earlier).

Changed 19 months ago by dinkumator@…

I want to give this a little bump. I noticed MoinMoin has much nicer table support (spans etc) which matches with the current implementation style. http://moinmoin.wikiwikiweb.de/HelpOnTables

Add/Change #1424 (MediaWiki-style table syntax support)

Author



Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will change from jonas. Next status will be 'new'
The owner will change from jonas to anonymous. Next status will be 'assigned'
 
Note: See TracTickets for help on using tickets.