We're on the same page Mat - sorry if I was unclear, while doing a macro is possible, my question instead is how to hijack the normal [[...]] logic as you've implied.
I'm guessing it's either something I can tweak in "Inline Parse Rules", or a modification / additional javascript around the wikification process itself. On Tuesday, March 23, 2021 at 7:00:51 AM UTC-4 Mat wrote: > You can probably make a macro to call like <<link "Bob Ross">> and the > macro checks up what type of tiddler "Bob Ross" is and acts accordingly. > Maybe the $LinkWidget can also show wikitext tooltips that uses the current > title (i.e the linked to title) as argument - I don't know if this is > possible. > > What I would much rather see - so it doesn't disturb the workflow when > authoring - is a direct logic that is invoked when using the [[...]] > syntax, because this syntax is "the smooth one". It could be attached to > some template but what exact template to apply could be customized based on > some characteristic of what is linked. E.g "Bob Ross" is tagged Contact so > the contacttemplate is used. Maybe it could even specify what happens when > the link is clicked! This would make it possible to have [[bobross]] > [[BobRoss]] and [[Bob Ross]] all navigate to [[Bob Ross]]. > > Just maybe PMarios linking plugin, whose name just escapes me, uses > something like this... > > <:-) > > On Tuesday, March 23, 2021 at 11:41:26 AM UTC+1 Stobot wrote: > >> I had an idea today and am trying to figure out how difficult it would be >> to do. Say we use TiddlyWiki for project management (as I do), we will be >> writing "journal" type tiddlers and using as many links as possible for >> future reference. >> >> For example: "On [[2021-03-23]] I had lunch with [[Bob Ross]] and talked >> about [[Painting]] and his favorite place to paint which is [[France]]" >> >> Now, I know that: >> >> - [[2021-03-23]] is a tiddler that is tagged "Date" >> - [[Bob Ross]] is a tiddler that is tagged "Contact" >> - [[Painting]] is a tiddler that is tagged "Hobby" >> - [[France]] is a tiddler that is tagged "Place" >> >> Is there somewhere that I can insert logic to add to the logic of the >> internal link that is ultimately rendered? For example, for a "Contact", I >> might have "profilepic" in a field for [[Bob Ross]], and on the >> tooltip/hover I might want to display his picture, for the date, maybe a >> calendar tooltip, and for Hobby, maybe a list of other hobbies, or maybe >> recent entries also related to Painting. >> >> I could use macros instead of links and insert logic there - such as use >> <<mylink "Bob Ross">> and in the macro check for the tag and insert all of >> my stuff, but then I can't use things like CompText, backlinks probably >> wouldn't work etc. >> >> Any ideas? >> > -- 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/4f440b43-a907-4ca9-9c12-d5aa40445113n%40googlegroups.com.

