aa_macro syntax 
 aa_macro source 
 HTML source 
 HTML render 
Key

§ 4.54 - [dlist] Built-In

Mnemonic aid: dlist

See also:  [dlist] )

Displays a list:

 [dlist] ) provides the ability to display and/or process a list. These behaviors are generally controlled by the various style parameters, although if no styles are provided,  [dlist] ) will display the list content directly, using inter= and/or parms= and/or posts= if they are specified.

style= specifies a style that will "wrap" every element of the list, except when one or both of fs= and/or ls= style parameters are also specified, in which case those styles will respectively wrap the first and/or last element of the list rather than the one specified by style=.

fs= specifies a style that will "wrap" the first element of a list. fs= is only used if style= has also been specified.

ls= specifies a style that will "wrap" the last element of a list. ls= is only used if style= has also been specified.

inter= specifies something that will go between each element of a list.

parms= specifies something that will go before each element of a list.

posts= specifies something that will go after each element of a list.

ntl= specifies something that will go between the next-to-last element and the last element of a list.

Caution: ntl=NTL is not wrapped by style=stylename. If you want that, then wrap it individually as shown in the last example.
Caution: if you want a style to be re-evaluated for each list element, you must put it in the style=styleName parameter, and, if used, the fs=styleName and/or ls=styleName parameters.

Styles in inter=, parms=, posts= and ntl= parameters are evaluated only once in the context of the  [dlist] ) itself, whereas the style=styleName is evaluated once for each element, and fs=styleName and ls-styleName are evaluated once for the first and last element respectively.

See the example below that uses style=redcounter for an example of how to alter states for each element.

Other built-ins used here:  [dlist] )

Keyboard Navigation
, Previous Page . Next Page t TOC i Index
This manual was generated with wtfm
on January 10th, 2026 at 2:38 MT
wtfm uses aa_macro and SqLite
aa_macro uses Python 2.7