Thanks Eric!
On Saturday, November 14, 2020 at 7:34:16 PM UTC-6 Eric Shulman wrote:

> 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= 
> <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/12707420-6651-4455-99db-2cd97270fc87n%40googlegroups.com.

Reply via email to