1 Date: Wed, 19 May 2010 18:15:54 +0000
2 Mime-Version: 1.0 (Produced by PhpWiki 1.4.0RC-20100415)
4 Content-Type: application/x-phpwiki;
5 pagename=Help%2FRichTablePlugin;
6 flags=PAGE_LOCKED%2CEXTERNAL_PAGE;
9 Content-Transfer-Encoding: binary
11 The **~RichTable** [[Help:WikiPlugin|plugin]] is a plugin that takes off from the [[Help:OldStyleTablePlugin|OldStyleTable]] plugin. It allows a user to specify arbitrary properties of ##<table>##, ##<tr>## and ##<td>## with a very simple markup.
13 The contents of each cell are individually processed by the ~BlockParser. This means that you can do interesting things like put **invoke plugins**, use **enumerated lists** etc within each cell!
15 * A ##"-"## (dash) at the start of a new line represents a new row in the table.
16 * A ##"|"## (vertical bar or pipe) at the start of a new line represents a cell.
17 * Attributes for the tags
18 ** A line that starts with a ##"*"## (star or asterisk) after a ##"|"## is parsed for attributes for the corresponding cell.
19 ** Attributes for the table are given on line that starts with a ##"*"##, only if the line appears before any other line except whitespace.
20 ** A line that starts with a ##-## is always parsed for attributes since it can't have any content, unlike a cell.
22 ** Cell contents are processed by the ~BlockParser.
23 ** Any line that starts with a ##"*"## anywhere other than the table attribute line is treated as normal content.
24 ** Any line that starts with whitespace is also treated as content.
25 ** Any cell line that does not have a ##"*"## after the ##"|"## is treated as normal content.
26 ** All content lines that follow a cell line are added to that cell. They can contain arbitrary text except the above cases.
27 ** If there is no cell in the current row, content lines are dropped silently.
28 * The two special characters ##"~~"## and ##"?>"## should be escaped as ##"\~~"## and ##"?\>"##. I havn't discovered any other characters yet that might need to be escaped. This is required for the block parser to work.
30 We allow attributes with or without quotes (")
32 border=1, cellpadding="5"
33 style="font-family: sans-serif; border-top:1px solid #dddddd;"
34 style="font-family: Verdana, Arial, Helvetica, sans-serif"
41 *border=1, cellpadding=5, bgcolor=#f0f8f8, width=75%, align=center
43 |* colspan=3, align=center
47 [http://phpwiki.sourceforge.net/demo/themes/default/images/png.png]
49 This cell actually has a plugin invocation inside it!
61 This line gets dropped ... no cell to contain it!
62 |* bgcolor=#f0f0ff, align=center
67 This cell uses the row color
68 | I wish this cell had a nested table inside it! :(
71 The above table is rendered from:
76 *border=1, cellpadding=5, bgcolor=#f0f8f8, width=75%, align=center
78 |* colspan=3, align=center
82 [http://phpwiki.sourceforge.net/demo/themes/default/images/png.png]
84 This cell actually has a plugin invocation inside it!
96 This line gets dropped ... no cell to contain it!
97 |* bgcolor=#f0f0ff, align=center
102 This cell uses the row color
103 | I wish this cell had a nested table inside it! :(
108 * The plugin can't nest itself yet. Thus nested tables are currently not possible.
111 * [Sameer D. Sahasrabuddhe|http://www.it.iitb.ac.in/~sameerds/phpwiki/index.php/RichTablePlugin]
115 [[PhpWikiDocumentation]] [[CategoryWikiPlugin]]