NIH | National Cancer Institute | NCI Wiki  

Error rendering macro 'rw-search'

null

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 63 Next »

This page shows the following

More information on the table data macro

Fixed row table with Text Data form boxes inserted into each non-header cell

The general form is

|| Date || Type || Note || Assignee ||
| {text-data:DateValue}{text-data} | {text-data:TypeValue}{text-data} | {text-data:NoteValue}{text-data} | {text-data:AssigneeValue}{text-data} |

An example follows. Each cell outside the header contains a text data macro. In the Edit Contents view, complete the text boxes.

Date

Type

Note

Assignee

December 11, 2014

Example

One row only

Not applicable

Adjustable row table created with the Table Data macro, with Text Data form boxes inserted into the first non-header row

The general form is

{table-data:ExampleTable}
|| Date || Type || Note || Assignee ||
| {text-data:DateValue}{text-data} | {text-data:TypeValue}{text-data} | {text-data:NoteValue}{text-data} | {text-data:AssigneeValue}{text-data} |
{table-data}

An example follows. The table data macro establishes a table. Text data macros in each cell establish input text boxes for the type of data indicated in the general form. In the Edit Contents view, complete the text boses.

Date

Type

Note

Assignee

April 5, 2011

Example

One row was expanded.

Not applicable

Scaffolding Table-data macro

The table-data macro allows for dynamic addition and deletion of rows in a table in Edit view.

The general form is:

{table-data:Name}
|| Heading 1 || Heading 2 ||
| {xxx-data:Data 1}{xxx-data} | {xxx-data:Data 2}{xxx-data} |
{table-data}

The general form with the text-data macro follows.

{table-data:Name}
|| Heading 1 || Heading 2 ||
| {text-data:Data 1}{text-data} | {text-data:Data 2}{text-data} |
{table-data}

Heading 1

Heading 2

Example

One row expanded

  • No labels