Discussion:
[tw] Help on a macro to generate the adress of an Iframe needed.
Jan
2017-10-10 20:57:12 UTC
Raw Message
Hello,
I am lost making a macro to generate a Temporary Wikipedia Tiddler. This
means it should open a Tiddler with an Iframe containing the Wikipedia
article. I do not arrive to insert the subject into the Iframe.
Somehow the wikify-part does not seem to work because the generated
Tiddler has not text at all, but also the frame shown (for test purpose)
has no the correct suffix that should be inserted via the variable...

---

\define Wikiframe2(subject)
<$macrocall$name="Wikiframe" subject="""$subject$""" />
\end

\define Wikiframe(subject)
<iframe allowtransparency="true" frameborder="0" scrolling="no"
src="https://de.m.wikipedia.org/wiki/$subject$"
style="width:110%;height:95vh;" scrolling="yes"></iframe>
\end

\define Wikipedia(subject)
<$button> <$wikify name="insert" text=<<Wikiframe2 "subject">>>
<$action-setfield$tiddler="""$:/temp/Wikipedia/$subject$""" text=<<insert>>/> <$action-setfield $tiddler="""$:/temp/Wikipedia/$subject$"""
tags="Wikipedia"/>
<$action-setfield$tiddler="""$:/temp/Wikipedia/$subject$""" alias="$subject$"/> <$action-navigate $to="""$:/temp/Wikipedia/$subject$"""/>
Wikipedia:$subject$
</$wikify> </$button>
<<Wikiframe>>
\end

<<Wikipedia "Semiotik">>

---

Thanks for help
Jan
--
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+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.