I’m trying to use a different prefix depending on the tiddler that is to be transcluded. But, can’t really figure out how to get the match
operator to work properly. Although, the last match case is working properly.
This is what I have tried:
<$list filter="[<currentTiddler>fields[]prefix[cast-list]]" variable="cast">
<table>
<$list filter="<cast> [match[!!]]">
<tr><$transclude tiddler={{{ [<currentTiddler>get<cast>addprefix[$:/head/]] }}}/></tr>
</$list>
<$list filter="<cast> [match[:]]">
<tr><$transclude tiddler={{{ [<currentTiddler>get<cast>addprefix[$:/block/]] }}}/></tr>
</$list>
<$list filter="<cast> [!match[!!]] +[!match[:]]">
<tr>
<$transclude tiddler={{{ [<currentTiddler>get<cast>split[@]nth[1]addprefix[$:/cast/]] }}}/>
<$transclude tiddler={{{ [<currentTiddler>get<cast>split[@]nth[2]addprefix[$:/role/]] }}}/>
</tr>
</$list>
</table>
</$list>