Charlie,
Thanks for Sharing back.
Perhaps you should title post like this as [TIPS], I keep thinking you are
ask for help instead of giving help.
I will just add;
- After splitting a title rather than use nth[] you can use first[] for
before the spilt, last[] for after.
- I always have to say, try not to use compound tiddler names (I have
argued at length why elsewhere), but your example is not too egregious in
this case :)
I really like the idea to fashion a custom details widget from another
value.
Regards
Tones
On Tuesday, 22 September 2020 13:30:12 UTC+10, Charlie Veniot wrote:
>
> 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/f73ef5d8-437b-44f1-94b9-e3e44de9d08bo%40googlegroups.com.