On Sun, Jun 18, 2023 at 5:36 PM Charlie Veniot <cj.ven...@gmail.com> wrote:
> If you have an approach you think is simpler than the one described above, > please let everybody know about it. > Here is one I find simpler (YMMV): ``` <$railroad text={{{ [["]addsuffix<currentTiddler>addsuffix["]] [["(" <"numValue1"> "," <"numValue2"> ")"]] +[join[]] }}}/> ``` and a slight variation: ``` <$railroad text={{{ [["]] [<currentTiddler>] =[["]] [["(" <"numValue1"> "," <"numValue2"> ")"]] +[join[]] }}}/> ``` For me the first line in each of the above read slightly easier than that addprefix/addsuffix combination since I don't need to mentally re-order anything. And having all the quoting together in a single line (2nd line in each of the above) I found it easier to read since at a glance I can tell everything on that line is part of one static string. Maybe these small tweaks aren't what you had in mind, but I thought I'd share in case it helps. Also, the future 5.3 version of Tiddlywiki might introduce substitution within attribute values: https://tiddlywiki5-git-fork-saqimtiaz-textsubstitution-jermolene.vercel.app/#Substituted%20Attribute%20Values. With that feature, you could do this: ``` <$railroad text=`"$(currentTiddler)$" "(" <"numValue1"> "," <"numValue2">")"`/> ``` I know Charlie has a self-imposed policy not to upgrade past 5.2.3, so this last one is for others who might be interested. -- 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 tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/CAO5X8CydfS9sJRicfLo4xe4QbkkYn3-xnJtn2OTHN%2BE%2BZmixyg%40mail.gmail.com.