bryonjacob / wikimodel

Automatically exported from code.google.com/p/wikimodel
0 stars 0 forks source link

Syntax problem in XWiki parser for handling tables #41

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Currently there's a problem since the xwiki parser in wikimodel recognizes
{table} but since we've now doubled the curly braces for macro syntax the
new {{table}} macro isn't recognized.

On a related topic we're rewriting the table macro so there'll probably be
some differences from what exists now. I'll update this issue when we've
progressed more.

Original issue reported on code.google.com by vmas...@gmail.com on 21 Aug 2008 at 11:42

GoogleCodeExporter commented 8 years ago
The table syntax was changed to:
!! Header 1.1 !! Header 1.2 !! Header 1.3
!! Header 2.1 :: Cell 2.2 :: Cell 2.3
OR
|| Header 1.1 || Header 1.2 || Header 1.3
|| Header 2.1 | Cell 2.2 | Cell 2.3

The first syntax is higly recomended - it is much simpler to use with 
non-english
keyboard layouts (with cyrilic keyboard for example).

Parameters for tables, table rows and table cells can be added using the "(%
param1=value1 param2=value2 %)" syntax. 

Parameters for tables:
(%param1=value1 param2=value2 ... %)
!! Header 1 :: Cell 1
!! Header 2 :: Cell 2
!! Header 3 :: Cell 3

Parameters for  table rows:
!! Header 1 :: Cell 1
(%rowParam1=value1 rowParam2=value2...%)!! Header 2 :: Cell 2
!! Header 3 :: Cell 3

Parameters for cells:
!! Header 1 :: Cell 1
!! Header 2 ::(%cellParam1=value1 cellParam2=value2 ...%) Cell 2 
!! Header 3 :: Cell 3

The same parameters markup is used for "||" and "|" cell delimiters 

Original comment by mikhail....@gmail.com on 2 Sep 2008 at 6:28

GoogleCodeExporter commented 8 years ago
How to define parameters for column ?

Original comment by thomas.m...@gmail.com on 2 Sep 2008 at 7:38