2014-09-17 11:13:24 +00:00
title: ListMacro
tags: Macros
modified: 20140917083515996
caption: list
The list macro is a family of macros that produce a list of tiddlers.
There are several variants of the macro:
2014-09-28 19:11:58 +00:00
* `<<list-links>>` produces a list of links to tiddlers that match a filter expression. If the tiddler has a //caption// field, it is displayed in lieu of the //title// field.
2014-09-17 11:13:24 +00:00
! Parameters
|!Position |!Name |!Description |!Default |
|1st |filter |Filter expression | |
|2nd |type |HTML tag to be used for the list wrapper |"ul" |
|3rd |subtype |HTML tag to be used for list entries |"li" |
2014-09-28 08:58:27 +00:00
|4th |class |An optional CSS class to be applied to the list wrapper element (eg `<ul class="three-columns">`) | |
2014-09-17 11:13:24 +00:00
! Examples
<$macrocall $name='wikitext-example-without-html'
src='<<list-links filter:"[tag[HelloThere]]">>
'/>
<$macrocall $name='wikitext-example-without-html'
src='<<list-links filter:"[tag[HelloThere]]" type:"ol">>
'/>