Renders the count of rows, list items, or definition terms.

Audience
Categories
Visual
Since
3.2

The macro renders the count of table rows, list items, or definition terms in its body.

It first checks for table rows, then for list items, then for definition terms. If none of these elements are found, the count of zero (0) is returned.

Properties

CSS Class

The counter is rendered in a span element with the specified CSS class.

Details

Page Size Warnings

This macro supports macros that render a table. If such a macro runs into the limits set by the page size configuration and renders a warning, then this macro will render an error.

Raw Text Macros

Please not that macros rendering lists or collections in raw text are not supported by this macro. The content of the Count Macro's body must have a table or a list in HTML format inside.

Therefore, the text rendered – for instance by the Child Documents Macro – cannot be counted with the Count Macro.

Related Macros

Other macros dealing with tables and lists.

Table Set Macro
Applies a simple set operation on tables in its body.
Table Merger Macro
Merges tables (and lists) into one table (or list).
Display Table Macro
Lists references to projectdoc documents in a table. Allows to select document properties for columns. Also non-list representations are provided.