Revision history for TableActionInfo


Revision [23336]

Last edited on 2016-05-20 07:38:47 by DarTar [Replaces old-style internal links with new pipe-split links.]
Additions:
~-[[http://docs.wikkawiki.org/TableMarkup | table markup]] (since 1.1.7)
~-Development: TableAction.>>This is the documentation page for a proposed **extended table action**. The code is available on the TableAction page. The development of this action has been discontinued since the implementation of a new [[http://docs.wikkawiki.org/TableMarkup | table markup]] in the [[WikkaUnstable | main development line]].::c::
Deletions:
~-[[http://docs.wikkawiki.org/TableMarkup table markup]] (since 1.1.7)
~-Development: TableAction.>>This is the documentation page for a proposed **extended table action**. The code is available on the TableAction page. The development of this action has been discontinued since the implementation of a new [[http://docs.wikkawiki.org/TableMarkup table markup]] in the [[WikkaUnstable main development line]].::c::


Revision [19618]

Edited on 2008-03-02 19:16:05 by DarTar [further clarification and links]
Additions:
=====Extended Table Action Documentation=====
~-[[http://docs.wikkawiki.org/TableMarkup table markup]] (since 1.1.7)
~-Development: TableAction.>>This is the documentation page for a proposed **extended table action**. The code is available on the TableAction page. The development of this action has been discontinued since the implementation of a new [[http://docs.wikkawiki.org/TableMarkup table markup]] in the [[WikkaUnstable main development line]].::c::
Deletions:
=====Table Action Documentation=====
Development: TableAction.>>This is the documentation page for the //proposed **extended**// Table action. The code is available on the TableAction page.::c::
//Once the planned 'autodoc' feature for actions is "live", this page will contain the automatically-generated documentation by just including an action; for now, I've just manually created the text.//


Revision [19617]

Edited on 2008-03-02 18:13:51 by NilsLindenberg [restored]
Additions:
=====Table Action Documentation=====
>>==See also:==
Development: TableAction.>>This is the documentation page for the //proposed **extended**// Table action. The code is available on the TableAction page.::c::
//Once the planned 'autodoc' feature for actions is "live", this page will contain the automatically-generated documentation by just including an action; for now, I've just manually created the text.//
===Documentation===
==Short description==
Turns a simple list of cell contents into a (data) table.
==Parameters==
""<table cellspacing="0" cellpadding="2" border="1">
<thead>
<tr><th scope="col">name</th><th scope="col">type</th><th scope="col">required?</th><th scope="col">default</th><th scope="col">description</th></tr>
</thead>
<tbody>
<tr><td>delimiter</td><td>char</td><td>optional</td><td>semicolon (;)</td><td>delimiter that will be used to separate cells; must be a single character.</td></tr>
<tr><td>delim</td><td>char</td><td>optional</td><td>;</td><td>synonym of <em>delimiter</em></td></tr>
<tr><td>caption</td><td>string</td><td>optional</td><td>none</td><td>table caption</td></tr>
<tr><td>columns</td><td>integer</td><td>optional</td><td>1</td><td>number of columns the table is to have.</td></tr>
<tr><td>cols</td><td>integer</td><td>optional</td><td>1</td><td>synonym of <em>columns</em></td></tr>
<tr><td>border</td><td>integer</td><td>optional</td><td>1</td><td>borderwidth of table.</td></tr>
<tr><td>cellpadding</td><td>integer</td><td>optional</td><td>3</td><td>padding within cells in pixels.</td></tr>
<tr><td>cellspacing</td><td>integer</td><td>optional</td><td>1</td><td>space between cells in pixels.</td></tr>
<tr><td>style</td><td>string</td><td>optional</td><td>none</td><td>in-line style for the table.</td></tr>
<tr><td>class</td><td>string</td><td>optional</td><td>none</td><td>alternative for style: use the class to style with the stylesheet.</td></tr>
<tr><td>summary</td><td>string</td><td>optional</td><td>none</td><td>summary of what the table contains.</td></tr>
<tr><td>cells</td><td>string</td><td><strong>required</strong></td><td></td><td>content of the table with cells separated by the (defined) delimiter.</td></tr>
</tbody>
</table>""
==Long description==
Wikka markup within cells is interpreted but HTML markup for cell contents is not possible.
There is only one required paramater: cells; if this is missing an error message will be displayed, along with the original action markup.
It is possible to define cell contents across multiple lines; surrounding whitespace is trimmed before generating output, embedded whitespace (including newlines) is retained.
Cell contents must be separated by a delimiter character; by default this is a semicolon, but if this would conflict with cell contents, a delimiter can be defined with the delimiter (or delim) parameter. Superfluous delimiters at the start and end of the cells parameter are discarded, so it's possible to write each cell row on a separate line, and end each cell with the delimiter: this makes it relatively easy to maintain table contents.
A caption can be defined, as well as a summary.
There is limited support for table headers (th cells): if cell content is embedded in sets of 2 to 5 '=' characters (as in heading markup) these will be discarded and a header cell (th) will be generated instead of a data cell (td). Row groups (thead, tfoot, tbody) are NOT supported.
The result is valid (data) table markup although accessibility will be limited.
==Author==
JavaWoman
===Examples===
~- Simple table with "forced" empty cell (""###""):--- ""{{table columns="3" cells="a;b;c;1;###;3"}}""--- {{image url="http://www.xs4all.nl/~iamback/tests/tableaction_samp1.png" alt="sample output table action" title="sample output table action"}}
~- Using delimiter '+' instead of ';' because a cell contains a semicolon; and Wikka heading markup being turned into table header cells: ---""{{table columns="3" cellpadding="1" delim="+" cells="==a==+b+c+==1==+2;3;4;5+6"}}""--- {{image url="http://www.xs4all.nl/~iamback/tests/tableaction_samp2.png" alt="sample output table action" title="sample output table action"}}
~- Header cells created with Wikka heading markup, and Wikka markup (italic, bold and centered) within table cells:--- ""{{table columns="3" cellpadding="2" cells="==a==;==b==;==c==;//1//;**2**;@@3@@"}}""--- {{image url="http://www.xs4all.nl/~iamback/tests/tableaction_samp3.png" alt="sample output table action" title="sample output table action"}}
~- Error message created when required parameter ##cells## is missing:--- ""{{table cols="5" caption="invalid table action"}}""--- {{image url="http://www.xs4all.nl/~iamback/tests/tableaction_samp4.png" alt="sample output table action" title="sample output table action"}}
~- Action across multiple lines, with also newlines separating table rows within the cells parameter; surrounding (extra) delimiters are automatically discarded so each table row, including the last, can be terminated with the (defined) delimiter. Note that the last table row starts with two (implicit) empty cells while the content for the last cell contains a new line (rendered as intended):--- ""{{table cols="3" cellpadding="10" delimiter="\"<br />
cells="\\\\==a==\==b==\==c==\<br />
//1//\**2**\@@3@@\<br />
\\//last<br />
cell//\\"<br />
}}""--- {{image url="http://www.xs4all.nl/~iamback/tests/tableaction_samp5.png" alt="sample output table action" title="sample output table action"}}
CategoryDevelopment
Deletions:
<<===This page has moved===
This page can now be found on the [[Docs:TableActionInfo Wikka Documentation Server]].
Thanks for updating your bookmarks!
An archive of [[http://wikkawiki.org/TableActionInfo/revisions
old revisions of this page]] is still available for reference.<<
::c::
CategoryMigratedDocs


Revision [17962]

Edited on 2008-01-27 02:34:52 by JavaWoman [Migrated to doc server]
Additions:
<<===This page has moved===
This page can now be found on the [[Docs:TableActionInfo Wikka Documentation Server]].
Thanks for updating your bookmarks!
An archive of [[http://wikkawiki.org/TableActionInfo/revisions
old revisions of this page]] is still available for reference.<<
::c::
CategoryMigratedDocs
Deletions:
=====Table Action Documentation=====
>>==See also:==
Development: TableAction.>>This is the documentation page for the //proposed **extended**// Table action. The code is available on the TableAction page.::c::
//Once the planned 'autodoc' feature for actions is "live", this page will contain the automatically-generated documentation by just including an action; for now, I've just manually created the text.//
===Documentation===
==Short description==
Turns a simple list of cell contents into a (data) table.
==Parameters==
""<table cellspacing="0" cellpadding="2" border="1">
<thead>
<tr><th scope="col">name</th><th scope="col">type</th><th scope="col">required?</th><th scope="col">default</th><th scope="col">description</th></tr>
</thead>
<tbody>
<tr><td>delimiter</td><td>char</td><td>optional</td><td>semicolon (;)</td><td>delimiter that will be used to separate cells; must be a single character.</td></tr>
<tr><td>delim</td><td>char</td><td>optional</td><td>;</td><td>synonym of <em>delimiter</em></td></tr>
<tr><td>caption</td><td>string</td><td>optional</td><td>none</td><td>table caption</td></tr>
<tr><td>columns</td><td>integer</td><td>optional</td><td>1</td><td>number of columns the table is to have.</td></tr>
<tr><td>cols</td><td>integer</td><td>optional</td><td>1</td><td>synonym of <em>columns</em></td></tr>
<tr><td>border</td><td>integer</td><td>optional</td><td>1</td><td>borderwidth of table.</td></tr>
<tr><td>cellpadding</td><td>integer</td><td>optional</td><td>3</td><td>padding within cells in pixels.</td></tr>
<tr><td>cellspacing</td><td>integer</td><td>optional</td><td>1</td><td>space between cells in pixels.</td></tr>
<tr><td>style</td><td>string</td><td>optional</td><td>none</td><td>in-line style for the table.</td></tr>
<tr><td>class</td><td>string</td><td>optional</td><td>none</td><td>alternative for style: use the class to style with the stylesheet.</td></tr>
<tr><td>summary</td><td>string</td><td>optional</td><td>none</td><td>summary of what the table contains.</td></tr>
<tr><td>cells</td><td>string</td><td><strong>required</strong></td><td></td><td>content of the table with cells separated by the (defined) delimiter.</td></tr>
</tbody>
</table>""
==Long description==
Wikka markup within cells is interpreted but HTML markup for cell contents is not possible.
There is only one required paramater: cells; if this is missing an error message will be displayed, along with the original action markup.
It is possible to define cell contents across multiple lines; surrounding whitespace is trimmed before generating output, embedded whitespace (including newlines) is retained.
Cell contents must be separated by a delimiter character; by default this is a semicolon, but if this would conflict with cell contents, a delimiter can be defined with the delimiter (or delim) parameter. Superfluous delimiters at the start and end of the cells parameter are discarded, so it's possible to write each cell row on a separate line, and end each cell with the delimiter: this makes it relatively easy to maintain table contents.
A caption can be defined, as well as a summary.
There is limited support for table headers (th cells): if cell content is embedded in sets of 2 to 5 '=' characters (as in heading markup) these will be discarded and a header cell (th) will be generated instead of a data cell (td). Row groups (thead, tfoot, tbody) are NOT supported.
The result is valid (data) table markup although accessibility will be limited.
==Author==
JavaWoman
===Examples===
~- Simple table with "forced" empty cell (""###""):--- ""{{table columns="3" cells="a;b;c;1;###;3"}}""--- {{image url="http://www.xs4all.nl/~iamback/tests/tableaction_samp1.png" alt="sample output table action" title="sample output table action"}}
~- Using delimiter '+' instead of ';' because a cell contains a semicolon; and Wikka heading markup being turned into table header cells: ---""{{table columns="3" cellpadding="1" delim="+" cells="==a==+b+c+==1==+2;3;4;5+6"}}""--- {{image url="http://www.xs4all.nl/~iamback/tests/tableaction_samp2.png" alt="sample output table action" title="sample output table action"}}
~- Header cells created with Wikka heading markup, and Wikka markup (italic, bold and centered) within table cells:--- ""{{table columns="3" cellpadding="2" cells="==a==;==b==;==c==;//1//;**2**;@@3@@"}}""--- {{image url="http://www.xs4all.nl/~iamback/tests/tableaction_samp3.png" alt="sample output table action" title="sample output table action"}}
~- Error message created when required parameter ##cells## is missing:--- ""{{table cols="5" caption="invalid table action"}}""--- {{image url="http://www.xs4all.nl/~iamback/tests/tableaction_samp4.png" alt="sample output table action" title="sample output table action"}}
~- Action across multiple lines, with also newlines separating table rows within the cells parameter; surrounding (extra) delimiters are automatically discarded so each table row, including the last, can be terminated with the (defined) delimiter. Note that the last table row starts with two (implicit) empty cells while the content for the last cell contains a new line (rendered as intended):--- ""{{table cols="3" cellpadding="10" delimiter="\"<br />
cells="\\\\==a==\==b==\==c==\<br />
//1//\**2**\@@3@@\<br />
\\//last<br />
cell//\\"<br />
}}""--- {{image url="http://www.xs4all.nl/~iamback/tests/tableaction_samp5.png" alt="sample output table action" title="sample output table action"}}
CategoryDocumentation


Revision [6533]

Edited on 2005-03-06 22:27:20 by JavaWoman [clarification]
Additions:
Development: TableAction.>>This is the documentation page for the //proposed **extended**// Table action. The code is available on the TableAction page.::c::
Deletions:
Development: TableAction.>>This is the documentation page for the Table action.::c::


Revision [6435]

Edited on 2005-03-03 07:47:02 by JavaWoman [repairing last sample code to show newline]
Additions:
=====Table Action Documentation=====

>>==See also:==
Development: TableAction.>>This is the documentation page for the Table action.::c::
//Once the planned 'autodoc' feature for actions is "live", this page will contain the automatically-generated documentation by just including an action; for now, I've just manually created the text.//

===Documentation===

==Short description==
Turns a simple list of cell contents into a (data) table.

==Parameters==
""<table cellspacing="0" cellpadding="2" border="1">
<thead>
<tr><th scope="col">name</th><th scope="col">type</th><th scope="col">required?</th><th scope="col">default</th><th scope="col">description</th></tr>
</thead>
<tbody>
<tr><td>delimiter</td><td>char</td><td>optional</td><td>semicolon (;)</td><td>delimiter that will be used to separate cells; must be a single character.</td></tr>
<tr><td>delim</td><td>char</td><td>optional</td><td>;</td><td>synonym of <em>delimiter</em></td></tr>
<tr><td>caption</td><td>string</td><td>optional</td><td>none</td><td>table caption</td></tr>
<tr><td>columns</td><td>integer</td><td>optional</td><td>1</td><td>number of columns the table is to have.</td></tr>
<tr><td>cols</td><td>integer</td><td>optional</td><td>1</td><td>synonym of <em>columns</em></td></tr>
<tr><td>border</td><td>integer</td><td>optional</td><td>1</td><td>borderwidth of table.</td></tr>
<tr><td>cellpadding</td><td>integer</td><td>optional</td><td>3</td><td>padding within cells in pixels.</td></tr>
<tr><td>cellspacing</td><td>integer</td><td>optional</td><td>1</td><td>space between cells in pixels.</td></tr>
<tr><td>style</td><td>string</td><td>optional</td><td>none</td><td>in-line style for the table.</td></tr>
<tr><td>class</td><td>string</td><td>optional</td><td>none</td><td>alternative for style: use the class to style with the stylesheet.</td></tr>
<tr><td>summary</td><td>string</td><td>optional</td><td>none</td><td>summary of what the table contains.</td></tr>
<tr><td>cells</td><td>string</td><td><strong>required</strong></td><td></td><td>content of the table with cells separated by the (defined) delimiter.</td></tr>
</tbody>
</table>""
==Long description==
Wikka markup within cells is interpreted but HTML markup for cell contents is not possible.

There is only one required paramater: cells; if this is missing an error message will be displayed, along with the original action markup.

It is possible to define cell contents across multiple lines; surrounding whitespace is trimmed before generating output, embedded whitespace (including newlines) is retained.

Cell contents must be separated by a delimiter character; by default this is a semicolon, but if this would conflict with cell contents, a delimiter can be defined with the delimiter (or delim) parameter. Superfluous delimiters at the start and end of the cells parameter are discarded, so it's possible to write each cell row on a separate line, and end each cell with the delimiter: this makes it relatively easy to maintain table contents.

A caption can be defined, as well as a summary.
There is limited support for table headers (th cells): if cell content is embedded in sets of 2 to 5 '=' characters (as in heading markup) these will be discarded and a header cell (th) will be generated instead of a data cell (td). Row groups (thead, tfoot, tbody) are NOT supported.
The result is valid (data) table markup although accessibility will be limited.

==Author==
JavaWoman

===Examples===
~- Simple table with "forced" empty cell (""###""):--- ""{{table columns="3" cells="a;b;c;1;###;3"}}""--- {{image url="http://www.xs4all.nl/~iamback/tests/tableaction_samp1.png" alt="sample output table action" title="sample output table action"}}
~- Using delimiter '+' instead of ';' because a cell contains a semicolon; and Wikka heading markup being turned into table header cells: ---""{{table columns="3" cellpadding="1" delim="+" cells="==a==+b+c+==1==+2;3;4;5+6"}}""--- {{image url="http://www.xs4all.nl/~iamback/tests/tableaction_samp2.png" alt="sample output table action" title="sample output table action"}}
~- Header cells created with Wikka heading markup, and Wikka markup (italic, bold and centered) within table cells:--- ""{{table columns="3" cellpadding="2" cells="==a==;==b==;==c==;//1//;**2**;@@3@@"}}""--- {{image url="http://www.xs4all.nl/~iamback/tests/tableaction_samp3.png" alt="sample output table action" title="sample output table action"}}
~- Error message created when required parameter ##cells## is missing:--- ""{{table cols="5" caption="invalid table action"}}""--- {{image url="http://www.xs4all.nl/~iamback/tests/tableaction_samp4.png" alt="sample output table action" title="sample output table action"}}
~- Action across multiple lines, with also newlines separating table rows within the cells parameter; surrounding (extra) delimiters are automatically discarded so each table row, including the last, can be terminated with the (defined) delimiter. Note that the last table row starts with two (implicit) empty cells while the content for the last cell contains a new line (rendered as intended):--- ""{{table cols="3" cellpadding="10" delimiter="\"<br />
cells="\\\\==a==\==b==\==c==\<br />
//1//\**2**\@@3@@\<br />
\\//last<br />
cell//\\"<br />
}}""--- {{image url="http://www.xs4all.nl/~iamback/tests/tableaction_samp5.png" alt="sample output table action" title="sample output table action"}}


----
Deletions:
=====Table Action Documentation=====

>>==See also:==
Development: TableAction.>>This is the documentation page for the Table action.::c::
//Once the planned 'autodoc' feature for actions is "live", this page will contain the automatically-generated documentation by just including an action; for now, I've just manually created the text.//

===Documentation===

==Short description==
Turns a simple list of cell contents into a (data) table.

==Parameters==
""<table cellspacing="0" cellpadding="2" border="1">
<thead>
<tr><th scope="col">name</th><th scope="col">type</th><th scope="col">required?</th><th scope="col">default</th><th scope="col">description</th></tr>
</thead>
<tbody>
<tr><td>delimiter</td><td>char</td><td>optional</td><td>semicolon (;)</td><td>delimiter that will be used to separate cells; must be a single character.</td></tr>
<tr><td>delim</td><td>char</td><td>optional</td><td>;</td><td>synonym of <em>delimiter</em></td></tr>
<tr><td>caption</td><td>string</td><td>optional</td><td>none</td><td>table caption</td></tr>
<tr><td>columns</td><td>integer</td><td>optional</td><td>1</td><td>number of columns the table is to have.</td></tr>
<tr><td>cols</td><td>integer</td><td>optional</td><td>1</td><td>synonym of <em>columns</em></td></tr>
<tr><td>border</td><td>integer</td><td>optional</td><td>1</td><td>borderwidth of table.</td></tr>
<tr><td>cellpadding</td><td>integer</td><td>optional</td><td>3</td><td>padding within cells in pixels.</td></tr>
<tr><td>cellspacing</td><td>integer</td><td>optional</td><td>1</td><td>space between cells in pixels.</td></tr>
<tr><td>style</td><td>string</td><td>optional</td><td>none</td><td>in-line style for the table.</td></tr>
<tr><td>class</td><td>string</td><td>optional</td><td>none</td><td>alternative for style: use the class to style with the stylesheet.</td></tr>
<tr><td>summary</td><td>string</td><td>optional</td><td>none</td><td>summary of what the table contains.</td></tr>
<tr><td>cells</td><td>string</td><td><strong>required</strong></td><td></td><td>content of the table with cells separated by the (defined) delimiter.</td></tr>
</tbody>
</table>""
==Long description==
Wikka markup within cells is interpreted but HTML markup for cell contents is not possible.

There is only one required paramater: cells; if this is missing an error message will be displayed, along with the original action markup.

It is possible to define cell contents across multiple lines; surrounding whitespace is trimmed before generating output, embedded whitespace (including newlines) is retained.

Cell contents must be separated by a delimiter character; by default this is a semicolon, but if this would conflict with cell contents, a delimiter can be defined with the delimiter (or delim) parameter. Superfluous delimiters at the start and end of the cells parameter are discarded, so it's possible to write each cell row on a separate line, and end each cell with the delimiter: this makes it relatively easy to maintain table contents.

A caption can be defined, as well as a summary.
There is limited support for table headers (th cells): if cell content is embedded in sets of 2 to 5 '=' characters (as in heading markup) these will be discarded and a header cell (th) will be generated instead of a data cell (td). Row groups (thead, tfoot, tbody) are NOT supported.
The result is valid (data) table markup although accessibility will be limited.

==Author==
JavaWoman

===Examples===
~- Simple table with "forced" empty cell (""###""):--- ""{{table columns="3" cells="a;b;c;1;###;3"}}""--- {{image url="http://www.xs4all.nl/~iamback/tests/tableaction_samp1.png" alt="sample output table action" title="sample output table action"}}
~- Using delimiter '+' instead of ';' because a cell contains a semicolon; and Wikka heading markup being turned into table header cells: ---""{{table columns="3" cellpadding="1" delim="+" cells="==a==+b+c+==1==+2;3;4;5+6"}}""--- {{image url="http://www.xs4all.nl/~iamback/tests/tableaction_samp2.png" alt="sample output table action" title="sample output table action"}}
~- Header cells created with Wikka heading markup, and Wikka markup (italic, bold and centered) within table cells:--- ""{{table columns="3" cellpadding="2" cells="==a==;==b==;==c==;//1//;**2**;@@3@@"}}""--- {{image url="http://www.xs4all.nl/~iamback/tests/tableaction_samp3.png" alt="sample output table action" title="sample output table action"}}
~- Error message created when required parameter ##cells## is missing:--- ""{{table cols="5" caption="invalid table action"}}""--- {{image url="http://www.xs4all.nl/~iamback/tests/tableaction_samp4.png" alt="sample output table action" title="sample output table action"}}
~- Action across multiple lines, with also newlines separating table rows within the cells parameter; surrounding (extra) delimiters are automatically discarded so each table row, including the last, can be terminated with the (defined) delimiter. Note that the last table row starts with two (implicit) empty cells while the content for the last cell contains a new line (rendered as intended):--- ""{{table cols="3" cellpadding="10" delimiter="\"<br />
cells="\\\\==a==\==b==\==c==\<br />
//1//\**2**\@@3@@\<br />
\\//last
cell//\\"<br />
}}""--- {{image url="http://www.xs4all.nl/~iamback/tests/tableaction_samp5.png" alt="sample output table action" title="sample output table action"}}


----


Revision [4236]

Edited on 2005-01-07 21:50:55 by IamBack [ypot]
Additions:
~- Action across multiple lines, with also newlines separating table rows within the cells parameter; surrounding (extra) delimiters are automatically discarded so each table row, including the last, can be terminated with the (defined) delimiter. Note that the last table row starts with two (implicit) empty cells while the content for the last cell contains a new line (rendered as intended):--- ""{{table cols="3" cellpadding="10" delimiter="\"<br />
Deletions:
~- Action across mutiple lines, with also newlines separating table rows within the cells parameter; surrounding (extra) delimiters are automatically discarded so each table row, including the last, can be terminated with the (defined) delimiter. Note that the last table row starts with two (implicit) empty cells while the content for the last cell contains a new line (rendered as intended):--- ""{{table cols="3" cellpadding="10" delimiter="\"<br />


Revision [4229]

Edited on 2005-01-07 19:36:31 by JavaWoman [adding sample screenshots]
Additions:
~- Simple table with "forced" empty cell (""###""):--- ""{{table columns="3" cells="a;b;c;1;###;3"}}""--- {{image url="http://www.xs4all.nl/~iamback/tests/tableaction_samp1.png" alt="sample output table action" title="sample output table action"}}
~- Using delimiter '+' instead of ';' because a cell contains a semicolon; and Wikka heading markup being turned into table header cells: ---""{{table columns="3" cellpadding="1" delim="+" cells="==a==+b+c+==1==+2;3;4;5+6"}}""--- {{image url="http://www.xs4all.nl/~iamback/tests/tableaction_samp2.png" alt="sample output table action" title="sample output table action"}}
~- Header cells created with Wikka heading markup, and Wikka markup (italic, bold and centered) within table cells:--- ""{{table columns="3" cellpadding="2" cells="==a==;==b==;==c==;//1//;**2**;@@3@@"}}""--- {{image url="http://www.xs4all.nl/~iamback/tests/tableaction_samp3.png" alt="sample output table action" title="sample output table action"}}
~- Error message created when required parameter ##cells## is missing:--- ""{{table cols="5" caption="invalid table action"}}""--- {{image url="http://www.xs4all.nl/~iamback/tests/tableaction_samp4.png" alt="sample output table action" title="sample output table action"}}
}}""--- {{image url="http://www.xs4all.nl/~iamback/tests/tableaction_samp5.png" alt="sample output table action" title="sample output table action"}}
Deletions:
~- Simple table with "forced" empty cell (""###""):--- ""{{table columns="3" cells="a;b;c;1;###;3"}}""
~- Using delimiter '+' instead of ';' because a cell contains a semicolon; and Wikka heading markup being turned into table header cells: ---""{{table columns="3" cellpadding="1" delim="+" cells="==a==+b+c+==1==+2;3;4;5+6"}}""
~- Header cells created with Wikka heading markup, and Wikka markup (italic, bold and centered) within table cells:--- ""{{table columns="3" cellpadding="2" cells="==a==;==b==;==c==;//1//;**2**;@@3@@"}}""
~- Error message created when required parameter ##cells## is missing:--- ""{{table cols="5" caption="invalid table action"}}""
}}""


Revision [4226]

Edited on 2005-01-07 18:56:23 by JavaWoman [minor code edit]
Additions:
~- Simple table with "forced" empty cell (""###""):--- ""{{table columns="3" cells="a;b;c;1;###;3"}}""
Deletions:
~- Simple table with "forced" empty cell (""###""):--- ""{{table columns="3" cellpadding="0" cells="a;b;c;1;###;3"}}""


Revision [4225]

Edited on 2005-01-07 18:50:32 by JavaWoman [minor edit in sample code]
Additions:
~- Simple table with "forced" empty cell (""###""):--- ""{{table columns="3" cellpadding="0" cells="a;b;c;1;###;3"}}""
Deletions:
~- Simple table with "forced" empty cell (###):--- ""{{table columns="3" cellpadding="0" cells="a;b;c;1;###;3"}}""


Revision [4224]

Edited on 2005-01-07 18:49:15 by JavaWoman [example code added (screen shots will follow)]
Additions:
~- Simple table with "forced" empty cell (###):--- ""{{table columns="3" cellpadding="0" cells="a;b;c;1;###;3"}}""
~- Using delimiter '+' instead of ';' because a cell contains a semicolon; and Wikka heading markup being turned into table header cells: ---""{{table columns="3" cellpadding="1" delim="+" cells="==a==+b+c+==1==+2;3;4;5+6"}}""
~- Header cells created with Wikka heading markup, and Wikka markup (italic, bold and centered) within table cells:--- ""{{table columns="3" cellpadding="2" cells="==a==;==b==;==c==;//1//;**2**;@@3@@"}}""
~- Error message created when required parameter ##cells## is missing:--- ""{{table cols="5" caption="invalid table action"}}""
~- Action across mutiple lines, with also newlines separating table rows within the cells parameter; surrounding (extra) delimiters are automatically discarded so each table row, including the last, can be terminated with the (defined) delimiter. Note that the last table row starts with two (implicit) empty cells while the content for the last cell contains a new line (rendered as intended):--- ""{{table cols="3" cellpadding="10" delimiter="\"<br />
cells="\\\\==a==\==b==\==c==\<br />
//1//\**2**\@@3@@\<br />
\\//last
cell//\\"<br />
}}""
Deletions:
[later]


Revision [4220]

Edited on 2005-01-07 18:27:01 by JavaWoman [minor layout]

No Differences

Revision [4218]

Edited on 2005-01-07 18:22:44 by JavaWoman [layout]
Additions:
===Documentation===
===Examples===
[later]


Revision [4217]

Edited on 2005-01-07 17:58:18 by JavaWoman [minor]
Additions:
<tr><td>delim</td><td>char</td><td>optional</td><td>;</td><td>synonym of <em>delimiter</em></td></tr>
<tr><td>cols</td><td>integer</td><td>optional</td><td>1</td><td>synonym of <em>columns</em></td></tr>
Deletions:
<tr><td>delim</td><td>char</td><td>optional</td><td>;</td><td>synonym of $delimiter</td></tr>
<tr><td>cols</td><td>integer</td><td>optional</td><td>1</td><td>synonym of $columns</td></tr>


Revision [4216]

Edited on 2005-01-07 17:55:56 by JavaWoman [adding (manual) documentation]
Additions:
//Once the planned 'autodoc' feature for actions is "live", this page will contain the automatically-generated documentation by just including an action; for now, I've just manually created the text.//
==Short description==
Turns a simple list of cell contents into a (data) table.
==Parameters==
""<table cellspacing="0" cellpadding="2" border="1">
<thead>
<tr><th scope="col">name</th><th scope="col">type</th><th scope="col">required?</th><th scope="col">default</th><th scope="col">description</th></tr>
</thead>
<tbody>
<tr><td>delimiter</td><td>char</td><td>optional</td><td>semicolon (;)</td><td>delimiter that will be used to separate cells; must be a single character.</td></tr>
<tr><td>delim</td><td>char</td><td>optional</td><td>;</td><td>synonym of $delimiter</td></tr>
<tr><td>caption</td><td>string</td><td>optional</td><td>none</td><td>table caption</td></tr>
<tr><td>columns</td><td>integer</td><td>optional</td><td>1</td><td>number of columns the table is to have.</td></tr>
<tr><td>cols</td><td>integer</td><td>optional</td><td>1</td><td>synonym of $columns</td></tr>
<tr><td>border</td><td>integer</td><td>optional</td><td>1</td><td>borderwidth of table.</td></tr>
<tr><td>cellpadding</td><td>integer</td><td>optional</td><td>3</td><td>padding within cells in pixels.</td></tr>
<tr><td>cellspacing</td><td>integer</td><td>optional</td><td>1</td><td>space between cells in pixels.</td></tr>
<tr><td>style</td><td>string</td><td>optional</td><td>none</td><td>in-line style for the table.</td></tr>
<tr><td>class</td><td>string</td><td>optional</td><td>none</td><td>alternative for style: use the class to style with the stylesheet.</td></tr>
<tr><td>summary</td><td>string</td><td>optional</td><td>none</td><td>summary of what the table contains.</td></tr>
<tr><td>cells</td><td>string</td><td><strong>required</strong></td><td></td><td>content of the table with cells separated by the (defined) delimiter.</td></tr>
</tbody>
</table>""
==Long description==
Wikka markup within cells is interpreted but HTML markup for cell contents is not possible.
There is only one required paramater: cells; if this is missing an error message will be displayed, along with the original action markup.
It is possible to define cell contents across multiple lines; surrounding whitespace is trimmed before generating output, embedded whitespace (including newlines) is retained.
Cell contents must be separated by a delimiter character; by default this is a semicolon, but if this would conflict with cell contents, a delimiter can be defined with the delimiter (or delim) parameter. Superfluous delimiters at the start and end of the cells parameter are discarded, so it's possible to write each cell row on a separate line, and end each cell with the delimiter: this makes it relatively easy to maintain table contents.
A caption can be defined, as well as a summary.
There is limited support for table headers (th cells): if cell content is embedded in sets of 2 to 5 '=' characters (as in heading markup) these will be discarded and a header cell (th) will be generated instead of a data cell (td). Row groups (thead, tfoot, tbody) are NOT supported.
The result is valid (data) table markup although accessibility will be limited.
==Author==
JavaWoman
Deletions:
//This page is still a stub - it will be expanded soon.//


Revision [4207]

Edited on 2005-01-07 16:25:57 by JavaWoman [adapt]
Additions:
=====Table Action Documentation=====
Development: TableAction.>>This is the documentation page for the Table action.::c::
//This page is still a stub - it will be expanded soon.//
Deletions:
=====xxxxx Action Documentation=====
Development: xxxxxAction.>>This is the documentation page for the xxxxx action.::c::
//This page is a **template**. It belongs to CategoryTemplate (which contains more handy templates). To create an action documentation page, [[http://wikka.jsnx.com/ActionInfoTemplate/clone clone this page]] to a page called **xxxxxActionInfo** (where xxxxx is the (capitalized) name of the action), replace all occurrences of 'xxxxx' with the name of the action and replace this paragraph with the actual content. Do **not** put a "Wikka Documentation" link at the top unless and until the action is part of the official Wikka distribution!//


Revision [4206]

The oldest known version of this page was created on 2005-01-07 16:24:10 by JavaWoman [adapt]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki