In the *readme *of a plugin I want to link to a tiddler that is not part of the plugin. If that tiddler exists in the wiki, then the link should be a regular tiddlylink. If the tiddler is missing then it should be an external url to where that tiddler can be found.
The following works, calling it with <<linkOrExt "https://mywiki#mytiddler">> \define link() {{{ [<__url__>split[#]rest[]decodeuri[]join[ ]] }}} \define linkOrExt(url) <$list filter="""$url$ +[split[#]rest[]decodeuri[]join[ ]is[missing]]""" emptyMessage=<<link>>> <a href="""$url$""" rel="noopener noreferrer" target="_blank">{{!!title}}</a> </$list> \end ...but I am hoping for something more elegant that doesn't need the extra macro. And it seems silly I have to do the splitting twice. Maybe something with then or else can be used but I can't fully wrap my head around these operators. (I wish the else op could somehow enclose a full expression directly in the filter: "...else<this separate filter>" ) Note: Trying to avoid the extra macro by doing: emptyMessage={{{ [<__url__>split[#]rest[]decodeuri[]join[ ]] }}} ...returns a textified title, but it needs to be a link. Ideas anyone? <:-) -- 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/461757fb-e85c-4ead-922a-3087dd1cd0a4n%40googlegroups.com.