I was contemplating a simple but useful macro such as:
{foreach}
{foreach-head}
|| Item || Link || Page Titles || Labelled Pages ||{foreach-head}
{foreach-tail}
{foreach-body}
|| %item% |
[%item%] | {search:query=title:%item%} | {contentbylabel:%item%} |{foreach-body}
{foreach-list:%item%}
alpha
beta
gamma{foreach-list}{foreach}
that would render a table with 4 rows and the obvious replacements
But this could be a fairly simple patch to replace-and-render that includes a new tag, {replace-list} (instead of {foreach-list} )
- Each line of the list is rendered.
- the head / body and tail are assembled as wiki and rendered as one step
- Not that I know a use case yet, but if you had multiple lists, it would do all permutations of replacements.
- leading and trailing whitespace and newlines for the head and tail are ignored