I'm guessing that this applies to Classic rather than 5?

What worked for me was putting this in a template tiddler

\define pmLink(what)
<iframe width="100%" height="480" 
src="http://www.ncbi.nlm.nih.gov/pubmed/$what$ 
" frameborder="0" allowfullscreen></iframe>
\end
<$macrocall $name="pmLink" what={{!!pmid}} />

and then transcluding that in the target tiddler (with a field pmid 
containing a value 26895739)

{{||pubmed}}

Acknowledgements to wherever I cloned that code from but it is indeed a 
useful snippet.

Best wishes

Peter

On Tuesday, October 15, 2013 at 5:19:29 AM UTC+1, Ya Ya wrote:
>
> Hi, I need a help to make a macro to access the information from pubmed
>
> +++[abstract>]
> <html><div align="center"><iframe 
> src="http://www.ncbi.nlm.nih.gov/pubmed/22464321?report=abstract&format=text"; 
> frameborder="0" width="100%" height="250"></iframe></div></html>===
>
>
> I hope that we can get the information from pubmed to save the spaces in my 
> TWs. Hopefully, the code will be like this: <<pubmed number>>, whereas number 
> is the accession number for each item from pubmed (22464321 
> <http://www.ncbi.nlm.nih.gov/pubmed/22464321?report=abstract&format=text> is 
> the one as the sample described above). 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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/15c5ba13-5029-4786-bf48-26f3929cde18%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to