[tw] $link and external link woes
Hi, I'm trying to create an external link using the $link widget in TW 5.0.15 but I can't get my markup working correctly. I have to admit that I don't understand why the following code snipped isn't correctly creating a working external URL. \define _rfclink(n) $link to=http://tools.ietf.org/html/rfc$n$; $transclude field=rfc-title//untitled RFC document///$transclude/$link \end and then... $set name=rfc value={{!!rfc-number}} $macrocall $name=_rfclink n=rfc / /$set I always end up with a local link and the external URL getting banged to the end of the local URL. From the documentation I would have expected $link to handle both local and external URLs. Any help? Thanks! -- 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 post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.
Re: [tw] $link and external link woes
Hi TheDiveO The $link widget is used for creating internal links to tiddlers. To create an external link you should use the HTML a element: \define _rfclink(n) a href=http://tools.ietf.org/html/rfc$n$; class=tw-link-external target=_blank$transclude field=rfc-title//untitled RFC document///$transclude/a \end Best wishes Jeremy On Thu, Aug 28, 2014 at 9:19 AM, TheDiveO harald.albre...@gmx.net wrote: Hi, I'm trying to create an external link using the $link widget in TW 5.0.15 but I can't get my markup working correctly. I have to admit that I don't understand why the following code snipped isn't correctly creating a working external URL. \define _rfclink(n) $link to=http://tools.ietf.org/html/rfc$n$; $transclude field=rfc-title//untitled RFC document///$transclude/$link \end and then... $set name=rfc value={{!!rfc-number}} $macrocall $name=_rfclink n=rfc / /$set I always end up with a local link and the external URL getting banged to the end of the local URL. From the documentation I would have expected $link to handle both local and external URLs. Any help? Thanks! -- 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 post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout. -- Jeremy Ruston mailto:jeremy.rus...@gmail.com -- 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 post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.
Re: [tw] $link and external link woes
Thanks Jemery for the clarifications. Should I file a change on the documentation? -- 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 post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.
Re: [tw] $link and external link woes
Hi TheDiveO I've made a very brief update already: https://github.com/Jermolene/TiddlyWiki5/commit/347d5c01485033f485698bbc93c5b02cfa1bd1c5 Any other improvements most welcome, Best wishes Jeremy On Thu, Aug 28, 2014 at 9:28 AM, TheDiveO harald.albre...@gmx.net wrote: Thanks Jemery for the clarifications. Should I file a change on the documentation? -- Jeremy Ruston mailto:jeremy.rus...@gmail.com -- 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 post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.
Re: [tw] $link and external link woes
On Thursday, August 28, 2014 10:33:07 AM UTC+2, Jeremy Ruston wrote: Any other improvements *most* welcome, *snicker* -- 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 post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.