G'day all,
The following transcludes a tiddler called "Input Ports#️⃣Review EWSGLK"
with a transclusion template called "tAsDetailsClosed".
{{Input Ports#️⃣Review EWSGLK||tAsDetailsClosed}}
"tAsDetailsClosed" takes care of:
- putting the transcluded tiddler within a Details Widget
- setting the "Summary" of the Details Widget to the transcluded
tiddler's title, but only whatever text is on the left side of the #️⃣
character.
"EWSGLK" is short for "ECO-WORTHY Solar Generator and Lighting Kit."
So "Input Ports#️⃣Review EWSGLK" = Input Ports hashtag Review of the
ECO-WORTHY Solar Generator and Lighting Kit.
My "ECO-WORTHY Solar Generator and Lighting Kit" "Aggregation Tiddler
transcludes a whole bunch of tiddlers related to that product. It doesn't
make much sense to show the full titles of the transcluded tiddlers, so I
scrub the extraneous stuff that comes after the #️⃣.
BTW, here's the contents of the tAsDetailsClosed transclusion template:
<$details summary={{{ [all[current]split[#️⃣]!is[blank]nth[]] }}} >
<table style="border:none;width:100%;">
<tr>
<td style="border:none;width:95%">
{{!!text}}
</td>
<td style="border:none;text-align:right;width:5%">
<$link to={{!!title}} tooltip="Open Transcluded Source Tiddler">🐟</$link>
</td>
</tr>
</table>
</$details>
Please find a screenshot below that shows the results.
BTW: I got this idea from TW Tones. In this post
<https://groups.google.com/g/tiddlywiki/c/NX0sPUvzF1k/m/1ONPg9C3BQAJ>,
Tones showed how to add prefixes to tiddler names via filters. That got me
thinking about "scrubbing" suffixes via filters as a solution for scrubbing
extraneous info from tiddler titles used as "Summary" values in
DetailsWidgets.
Cheers !
[image: HashtagScrubber.jpg]
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/2eefa2f9-15b8-487d-b95a-0052df1b5883o%40googlegroups.com.