I think it’s an oversight that we don’t have a convenient syntax for image links. Figuring
TiddlyWiki Classic uses this syntax: [img[http://wikitext.tiddlyspace.com/fractalveg.jpg][http://www.flickr.com/photos/jermy/10134618/]] For TW5, we’ve got [img[title-or-url]] and [ext[url]]. We could perhaps generalise the syntax so that elements of this format can be concatenated: [img[http://wikitext.tiddlyspace.com/fractalveg.jpg]ext[http://www.flickr.com/photos/jermy/10134618/]] [img[http://wikitext.tiddlyspace.com/fractalveg.jpg]link[HelloThere]] A different approach would be to extend the existing use of attributes with the image syntax: [img width=23 [http://wikitext.tiddlyspace.com/fractalveg.jpg]] We could use: [img link=“http://tiddlywiki.com" [http://wikitext.tiddlyspace.com/fractalveg.jpg]] Best wishes Jeremy > On 17 Oct 2015, at 08:51, Tobias Beer <[email protected]> wrote: > > Hi Scott, > > I can see where the markup doesn't have an elegant solution, but I'd think > that particular case (an image wrapped in a link) would come up often enough > that it fairly demanded either a shorthand or the elimination of the two > usual shorthands Siniy-Kit detailed above. > > I fully understand. To me, it's a win that we can just define exactly what we > need as a macro. > But I can also see, how we're loosing plenty people with that approach. > > Just listen to the sound of it... > > Missing feature? Write a macro. > > Go tell that to someone using MS Office and then > observe the look on their face from the mere suggestion. :D > > Simple image tiddler link: > > title: $:/_my/macros/imglink > tags: $:/tags/Macro > > \define imglink(tiddler) <$link to="""$tiddler$""">[img[$tiddler$]]</$link> > > Or use linkimg @ tb5 <http://tobibeer.github.io/tb5/#linkimg> for a more > sophisticated deal. > > Simple external image link: > > title: $:/_my/macros/linkimgx > tags: $:/tags/Macro > > \define linkimgx(tiddler,ref) <a href="$ref$">[img|$img$]]</a> > > Or, again, use linkimg @ tb5 <http://tobibeer.github.io/tb5/#linkimg> to also > link external targets. > > You can think of it as that: > > But the lack of consistency does have me tripping over my feet a bit as I try > to acclimate to TW5. > > ...or you can think that TW doesn't prescribe too much of a solution for you > when you might need something slightly different. > > Possibly, it's perhaps just a matter of not having had a conversation > as to whether some of these things could be more core-prominent these days. > > I believe, @Jeremy would ping authors to ask for a core contribution, > provided he saw it first and then gave it a thought along these lines. > > Best wishes, > > — tb > > -- > 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] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. > Visit this group at http://groups.google.com/group/tiddlywiki > <http://groups.google.com/group/tiddlywiki>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/tiddlywiki/cec065d5-4416-40cb-9931-a2e7dded60ca%40googlegroups.com > > <https://groups.google.com/d/msgid/tiddlywiki/cec065d5-4416-40cb-9931-a2e7dded60ca%40googlegroups.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- 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 post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/03B104F9-7BB5-4377-B3F2-615376A0BBEA%40gmail.com. For more options, visit https://groups.google.com/d/optout.

