~hokiegeek/tw5-image-carousel

ref: 43f15aa033927c322d2e3eb122c04d61495bcdbc tw5-image-carousel/macro.tid -rw-r--r-- 670 bytes
43f15aa0HokieGeek Initial export of thingy 6 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
modified: 20220120213942000
created: 20220120213942000
creator: hokiegeek
modifier: hokiegeek
tags: $:/tags/Macro
title: $:/plugins/hokiegeek/image-carousel/macros
type: text/vnd.tiddlywiki

\whitespace trim
\define image-carousel(images)
<$list filter="[all[current]get[image-selected]] =[list[!!images]] +[first[1]]">
<$image width=1000 source=<<currentTiddler>> />
</$list>
<$list filter="[list[!!images]count[]compare:number:gt[1]]">
many
</$list>
<div class="tc-image-chooser">
<$macrocall $name="image-picker-list" filter="[list[!!images]]" actions="

<$action-setfield $tiddler=<<currentTiddler>> $field='image-selected' $value=<<imageTitle>> />

"/>
</div>
\end