Hi Jonnan and Eric

I came up with an answer - then I saw Eric had replied already. My example 
gives you two different macros.
First one is pretty simple as all it does is to create a "pretty link" 
which points to an url wich is constructed from an URL and a word (or 
several)

Second macro takes the first macro and injects the prefix url for a google 
search and <<currentTiddler>> as the search item/subject.

A solution for inputting current tiddler's title into an existing macro 
seems to be that you "spell out" the macrocall widget to be able to use 
<<currentTiddler>> - <<<< ... >>>> is a no go...

Ps:Eric's or my macro will work in other tiddlers if you tag the tiddler 
(with the macro definition) with: $:/tags/Macro

\define gs(url,item)
[[$item$|$url$$item$]]
\end
\define gsl()
<$macrocall $name="gs" url="https://www.google.com/search?q="; 
item=<<currentTiddler>>/>
\end
Search for <<gs "https://www.google.com/search?q="; "dolphin">>
Search for this tiddlers title <<gsl>>

Cheers Måns Mårtensson


Den mandag den 22. juni 2015 kl. 19.13.05 UTC+2 skrev Jonnan:
>
> I'm probably missing something obvious here. 
>
> Okay -  I want to autocreate a link to google the Wiki subject - e.g. 
> https://www.google.com/search?q={{!!title}} where the Title is 'XCOM - 
> Enemy Unknown', thus generating 
> https://www.google.com/search?q=XCOM%20-%20Enemy%20Unknown 
>
> Despite attempts with transclusion and a few tricks with escaped 
> characters et al, I'm not coming up with a way to do this within a URL. Am 
> I missing something obvious, or am I just not the bright monkey I think I 
> am?
>     
> Thanks - Jonnan
>

-- 
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/96c1494b-ef6c-4fbd-897d-ad424d1604c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to