1 Date: Wed, 13 Apr 2011 16:54:29 +0000
2 Mime-Version: 1.0 (Produced by PhpWiki 1.4.0)
3 Content-Type: application/x-phpwiki;
4 pagename=Help%2FRichTablePlugin;
5 flags=PAGE_LOCKED%2CEXTERNAL_PAGE;
8 Content-Transfer-Encoding: binary
10 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.
12 This plugin is included for legacy only. We recommand to
13 use [[Help:MediawikiTablePlugin|Mediawiki tables]] instead.
17 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!
19 A ##"-"## (dash) at the start of a new line represents a new row in the table.
21 A ##"|"## (vertical bar or pipe) at the start of a new line represents a cell.
23 === Attributes for the tags ===
25 A line that starts with a ##"~*"## (star or asterisk) after a ##"|"## is parsed for attributes for the corresponding cell.
27 Attributes for the table are given on line that starts with a ##"~*"##, only if the line appears before any other line except whitespace.
29 A line that starts with a ##-## is always parsed for attributes since it can't have any content, unlike a cell.
33 Cell contents are processed by the ~BlockParser.
35 Any line that starts with a ##"~*"## anywhere other than the table attribute line is treated as normal content.
37 Any line that starts with whitespace is also treated as content.
39 Any cell line that does not have a ##"~*"## after the ##"|"## is treated as normal content.
41 All content lines that follow a cell line are added to that cell. They can contain arbitrary text except the above cases.
43 If there is no cell in the current row, content lines are dropped silently.
45 === Special characters ===
47 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.
51 We allow attributes with or without quotes ("):
53 border=1, cellpadding="5"
54 style="font-family: sans-serif; border-top:1px solid #dddddd;"
55 style="font-family: Verdana, Arial, Helvetica, sans-serif"
62 *border=1, cellpadding=5, bgcolor=#f0f8f8, width=75%, align=center
64 |* colspan=3, align=center
68 [http://phpwiki.sourceforge.net/demo/themes/default/images/png.png]
70 This cell actually has a plugin invocation inside it!
82 This line gets dropped ... no cell to contain it!
83 |* bgcolor=#f0f0ff, align=center
88 This cell uses the row color
89 | I wish this cell had a nested table inside it! :(
92 The above table is rendered from:
97 *border=1, cellpadding=5, bgcolor=#f0f8f8, width=75%, align=center
99 |* colspan=3, align=center
103 [http://phpwiki.sourceforge.net/demo/themes/default/images/png.png]
105 This cell actually has a plugin invocation inside it!
117 This line gets dropped ... no cell to contain it!
118 |* bgcolor=#f0f0ff, align=center
123 This cell uses the row color
124 | I wish this cell had a nested table inside it! :(
129 * The plugin can't nest itself. Thus nested tables are currently not possible. See [[Help:MediawikiTablePlugin|Mediawiki tables]] to have nested tables.
132 * [[http://www.it.iitb.ac.in/~sameerds/phpwiki/index.php/RichTablePlugin|Sameer D. Sahasrabuddhe]]
136 [[PhpWikiDocumentation]] [[CategoryWikiPlugin]]