That should read: In another thread <https://github.com/Jermolene/TiddlyWiki5/discussions/5564> I am asking if we could make [[bracket links]] more intelligent so they do different things depending on conte*X*t. (not "content")
<:-) On Wednesday, March 24, 2021 at 8:28:46 AM UTC+1 Mat wrote: > At first I thought you were out in the woods... but maybe you're onto > something! > > Transclusions with templates do indeed let you show anything, including > just a plain link as if it *is *a plain link. In another thread > <https://github.com/Jermolene/TiddlyWiki5/discussions/5564> I am asking > if we could make [[bracket links]] more intelligent so they do different > things depending on content. I gave these examples: > > - ...Clicking on [[Bob Ross]] in the in the "Profiles" tiddler opens > the "Bob Ross" tiddler but clicking on [[Bob Ross]] in the "Contact us" > tiddler opens a "sendto" tiddler. > - ...and clicking on [[Bob Ross]] when he is *tagged* with "Alert" > does something special > - ...and clicking on [[bobross]] also opens the "Bob Ross" tiddler > because I've made missing links cleverly guess tiddler or look them up in > a > dictionary. > > My hope in that thread is that there's some way to manipulate "the > mechanism" for whatever is used when [[this]] is converted into *this*. > I'm hoping there is, or could be, a *template *that is used for this > conversion that could be manipulated. The main point is to NOT have to > fiddle with widget commands that totally interrupt ones mind flow (which is > essential during e.g live note taking or when *authoring prose *in TW, as > opposed to hacking in TW). But your idea here might just solve this! At > least partly because one would still have to specify template. - Does > {{transclusion}} without any specified template use a default template that > can be manipulated? Then, for your backlinks idea, it could be made so that > calling the transclusion at, say, the very bottom of a tiddler > automatically means it should be for backlinks. > > So we can do this {{||backlinks}} to show backlinks in the current tiddler. > > And one could design a template for {{||template}} that > intelligently/contextually shows different things, like in my example above. > > <:-) > > On Wednesday, March 24, 2021 at 4:29:25 AM UTC+1 [email protected] wrote: > >> G'day all, >> >> The "Can we customize internal links? >> <https://groups.google.com/g/tiddlywiki/c/3jjkQ0v7EK0>" got me thinking >> ... >> >> Would it be useful for "backlinks" (the operator and the InfoPanel tab) >> to consider not only links but also consider transclusions as links? >> >> I can't help but think it would be helpful to use transclusions with >> templates to create very customized links. >> >> For highly customizable links: Instead of a link like [[some_tiddler]], >> one could instead have {{ some_tiddler || some_link_styling_template }} >> >> I suppose I don't see a distinction between a link to a tiddler and a >> transclusion of a tiddler in the sense that I consider one being a backlink >> just as much as the other. >> >> Any thoughts? Would this be worth putting in as a formal request? >> >> Of course, even if something could be done, I always like to pause for a >> second and wonder: should it? >> > -- 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/670fbc54-9986-482c-8885-a2c40d7d1ed4n%40googlegroups.com.

