On Saturday, November 14, 2020 at 4:38:27 PM UTC-8 brianburnham wrote:
> I'm trying to create an external link to search duckduckgo for the current
> tiddler's title (url encoded).
>
*<a href={{{
[<currentTiddler>encodeuricomponent[]addprefix[https://duckduckgo.com/?q=]]
}}} target="_blank">*
* search for <<currentTiddler>>*
*</a>*
Notes:
- You can't embed TW wiki syntax *within* a parameter value
- But you CAN construct an entire parameter value using wikitext syntax
- Macros/Variables use DOUBLED angle brackets, <<macroname param param
param ...>>
- Within filter syntax, macros/variables use SINGLE angle brackets.
- You can't use macros with parameters inside filter syntax.
- Widgets always use SINGLE angle brackets, <$widgetname param=...
param="... />
- Widgets either have matching <$widgetname ...>content</$widgetname>,
or use "short-form", <$widgetname ... /
- You can't use widgets inside filter syntax
In the above example, target="_blank" is causes the external link to open
in a new tab or window.
enjoy,
-e
--
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/3c09cc78-e4d5-47c2-bc38-3eacb2e7a940n%40googlegroups.com.