The following code works (whew…after a long day’s trying complex IF THEN ELSE conditions). However, I assume there are better ways of coding the logic. I am concerned that by simplifying each condition through many repeated $list widgets, when the numbers of tiddlers increase in the wiki, performance will decrease, especially as this procedure is in a viewtemplate for many tiddler types. It is easily understandable and that is a plus for future tech support.
I’d be interested in seeing others’ coding suggestions/improvements.
NB. the display of labels in each $list condition and the List-Links macro output are purely for debugging and will be removed
\procedure TLSbacklinks()
<<list-links filter:"[all[current]backlinks[]]" >>
Linked from
<br>
<$list filter="[all[current]backlinks[]]" >
<$list filter="[<currentTiddler>prefix:title[MGA]caption[History]]" >
<$link to=<<currentTiddler>> >
History: <$text text={{!!caption}} />
</$link>
<br>
</$list>
<$list filter="[<currentTiddler>prefix:title[MGA]caption[Local History]]" >
<$link to=<<currentTiddler>> >
LocalHistory: <$text text={{!!caption}} />
</$link>
<br>
</$list>
<$list filter="[<currentTiddler>prefix:title[MGA]caption[Gallery]]" >
<$link to=<<currentTiddler>> >
Gallery: <$text text={{!!caption}} />
</$link>
<br>
</$list>
<$list filter="[<currentTiddler>prefix:title[MGA]caption[Technical]]" >
<$link to=<<currentTiddler>> >
echnical: <$text text={{!!caption}} />
</$link>
<br>
</$list>
<$list filter="[<currentTiddler>prefix:title[MGA]caption[Map]]" >
<$link to=<<currentTiddler>> >
Map: <$text text={{!!caption}} />
</$link>
<br>
</$list>
<$list filter="[<currentTiddler>tag[All Guns]]" >
<$link to=<<currentTiddler>> >
All Guns: <$text text={{!!caption}} />
</$link>
<br>
</$list>
<$list filter="[<currentTiddler>tag[Gun Type]]" >
<$link to=<<currentTiddler>> >
Gun Type: <$text text={{!!title}} />
</$link>
<br>
</$list>
<$list filter="[<currentTiddler>tag[Fort]]" >
<$link to=<<currentTiddler>> >
Fort: <$text text={{!!title}} />
</$link>
<br>
</$list>
<$list filter="[<currentTiddler>tag[Ship]]" >
<$link to=<<currentTiddler>> >
Ship: <$text text={{!!title}} />
</$link>
<br>
</$list>
<$list filter="[<currentTiddler>tag[Manufacturer]]" >
<$link to=<<currentTiddler>> >
Manufacturer: <$text text={{!!title}} />
</$link>
<br>
</$list>
<$list filter="[<currentTiddler>caption[Ammunition]]" >
<$link to=<<currentTiddler>> >
Ammunition: <$text text={{!!title}} />
</$link>
<br>
</$list>
<$list filter="[<currentTiddler>caption[Carriages]]" >
<$link to=<<currentTiddler>> >
Carriages: <$text text={{!!title}} />
</$link>
<br>
</$list>
</$list>
\end
bobj

)