~hokiegeek/tw5-location-crafts

tw5-location-crafts/template-element.tid -rw-r--r-- 1.1 KiB
0101ce70HokieGeek Loads caption of an element tiddler if found 7 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
25
26
27
28
29
30
modified: 20220217175144000
created: 20220217175144000
creator: hokiegeek
title: $:/plugins/hokiegeek/location-crafts/templates/element
type: text/vnd.tiddlywiki

<$list filter="[<special-elements-$type$>enlist-input:raw[]match<element>]">
<<element>>
</$list>
<$list filter="[<special-elements-$type$>enlist-input:raw[]match<element>then[found]else[]remove[found]]">
<!--
<$link to=<<element>>><<element>></$link>
-->
<$link to=<<element>>>
<$transclude tiddler=<<element>> field="caption">
<<element>>
</$transclude>
</$link>
</$list>
</$list>
<!--
<$let prev={{{ [<counter>subtract[1]] }}}
      last={{{ [<currentTiddler>get[crafted-$type$]enlist-input:raw[]rest<counter>join[ ]] }}}
      newlist={{{ [<currentTiddler>get[crafted-$type$]enlist-input:raw[]first<prev>append<last>join[ ]] }}}>
<$button setTitle=<<categoryState>> setField=$type$ setTo="hidden" tooltip="use unique" aria-label="use unique" class="tc-btn-invisible tc-btn-mini btn-close">
    <$action-setfield $tiddler=<<me>> $field="crafted-$type$" $value=<<newlist>> />
    {{$:/core/images/erase}}
</$button>
</$let>
-->