Discussion:
[tw] Temporary Wikipedia Tiddler
Add Reply
Jan
2017-10-09 21:38:29 UTC
Reply
Permalink
Raw Message
Hello,
I am trying to make a macro to call 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.
Perhaps (if anyone else could use this) It would be a good Idea to
choose the wikipedia language as well.

This is what I made so far...

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

\define Wikiframe()
<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>
<$action-setfield $tiddler="""$:/temp/Wikipedia/$subject$"""
text=<<Wikiframe>>/>
<$action-setfield $tiddler="""$:/temp/Wikipedia/$subject$"""
tags="Wikipedia"/>
<$action-setfield $tiddler="""$:/temp/Wikipedia/$subject$"""
alias="$subject$"/>
<$action-navigate $to="""$:/temp/Wikipedia/$subject$"""/>
Wikipedia:$subject$
</$button>
\end

<<Wikipedia "Semiotik">>
--
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.
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/59DBEC55.60400%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.
'Sergey Shishkin' via TiddlyWiki
2017-10-11 15:11:30 UTC
Reply
Permalink
Raw Message
There's something about it
Post by Jan
Hello,
I am trying to make a macro to call 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.
Perhaps (if anyone else could use this) It would be a good Idea to
choose the wikipedia language as well.
This is what I made so far...
\define Wikisubject(subject) $subject$
\define Wikihtml()
<$wikify name="subject" text=<<Wikisubject>>>
<iframe allowtransparency="true" frameborder="0" scrolling="no"
src="https://de.m.wikipedia.org/wiki/<<subject>>"
style="width:110%;height:95vh;" scrolling="yes"></iframe>
</$wikify>
\end
\define Wikiframe()
<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>
<$action-setfield $tiddler="""$:/temp/Wikipedia/$subject$"""
text=<<Wikiframe>>/>
<$action-setfield $tiddler="""$:/temp/Wikipedia/$subject$"""
tags="Wikipedia"/>
<$action-setfield $tiddler="""$:/temp/Wikipedia/$subject$"""
alias="$subject$"/>
<$action-navigate $to="""$:/temp/Wikipedia/$subject$"""/>
Wikipedia:$subject$
</$button>
\end
<<Wikipedia "Semiotik">>
--
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.
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/57325195-fc21-47f5-80b8-cc6c15dd4978%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
BJ
2017-10-11 17:14:49 UTC
Reply
Permalink
Raw Message
the structure $x$ only applies to the current macro - so you need to pass
it into the other macro

\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>
<$action-setfield $tiddler="""$:/temp/Wikipedia/$subject$"""
text=<<Wikiframe *$subject$*>>/>
<$action-setfield $tiddler="""$:/temp/Wikipedia/$subject$"""
tags="Wikipedia"/>
<$action-setfield $tiddler="""$:/temp/Wikipedia/$subject$"""
alias="$subject$"/>
<$action-navigate $to="""$:/temp/Wikipedia/$subject$"""/>
Wikipedia:$subject$
</$button>
\end

all the best

BJ
Post by Jan
Hello,
I am trying to make a macro to call 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.
Perhaps (if anyone else could use this) It would be a good Idea to
choose the wikipedia language as well.
This is what I made so far...
\define Wikisubject(subject) $subject$
\define Wikihtml()
<$wikify name="subject" text=<<Wikisubject>>>
<iframe allowtransparency="true" frameborder="0" scrolling="no"
src="https://de.m.wikipedia.org/wiki/<<subject>>"
style="width:110%;height:95vh;" scrolling="yes"></iframe>
</$wikify>
\end
\define Wikiframe()
<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>
<$action-setfield $tiddler="""$:/temp/Wikipedia/$subject$"""
text=<<Wikiframe>>/>
<$action-setfield $tiddler="""$:/temp/Wikipedia/$subject$"""
tags="Wikipedia"/>
<$action-setfield $tiddler="""$:/temp/Wikipedia/$subject$"""
alias="$subject$"/>
<$action-navigate $to="""$:/temp/Wikipedia/$subject$"""/>
Wikipedia:$subject$
</$button>
\end
<<Wikipedia "Semiotik">>
--
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.
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/e3451897-a3bc-48e0-acf6-012d3a0aa414%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Jan
2017-10-11 23:22:05 UTC
Reply
Permalink
Raw Message
Hej BJ
Many thanks...
I made a Single-Tiddler-Macro which is demonstrated and downloadable here
http://slidesnstories.tiddlyspot.com/#Wikipedia%20Test

Cheers!
Jan
Post by BJ
the structure $x$ only applies to the current macro - so you need to
pass it into the other macro
\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>
<$action-setfield $tiddler="""$:/temp/Wikipedia/$subject$"""
text=<<Wikiframe *$subject$*>>/>
<$action-setfield $tiddler="""$:/temp/Wikipedia/$subject$"""
tags="Wikipedia"/>
<$action-setfield $tiddler="""$:/temp/Wikipedia/$subject$"""
alias="$subject$"/>
<$action-navigate $to="""$:/temp/Wikipedia/$subject$"""/>
Wikipedia:$subject$
</$button>
\end
all the best
BJ
Hello,
I am trying to make a macro to call 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.
Perhaps (if anyone else could use this) It would be a good Idea to
choose the wikipedia language as well.
This is what I made so far...
\define Wikisubject(subject) $subject$
\define Wikihtml()
<$wikify name="subject" text=<<Wikisubject>>>
<iframe allowtransparency="true" frameborder="0" scrolling="no"
src="https://de.m.wikipedia.org/wiki/
<https://de.m.wikipedia.org/wiki/><<subject>>"
style="width:110%;height:95vh;" scrolling="yes"></iframe>
</$wikify>
\end
\define Wikiframe()
<iframe allowtransparency="true" frameborder="0" scrolling="no"
src="https://de.m.wikipedia.org/wiki/$subject$
<https://de.m.wikipedia.org/wiki/$subject$>"
style="width:110%;height:95vh;" scrolling="yes"></iframe>
\end
\define Wikipedia(subject)
<$button>
<$action-setfield $tiddler="""$:/temp/Wikipedia/$subject$"""
text=<<Wikiframe>>/>
<$action-setfield $tiddler="""$:/temp/Wikipedia/$subject$"""
tags="Wikipedia"/>
<$action-setfield $tiddler="""$:/temp/Wikipedia/$subject$"""
alias="$subject$"/>
<$action-navigate $to="""$:/temp/Wikipedia/$subject$"""/>
Wikipedia:$subject$
</$button>
\end
<<Wikipedia "Semiotik">>
--
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
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/e3451897-a3bc-48e0-acf6-012d3a0aa414%40googlegroups.com
<https://groups.google.com/d/msgid/tiddlywiki/e3451897-a3bc-48e0-acf6-012d3a0aa414%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
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.
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/59DEA79D.2070007%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.
TonyM
2017-10-12 00:46:54 UTC
Reply
Permalink
Raw Message
Quick tip

add this as a snipit or make an editor toolbar button to turn a keyword into a wikipedia link..

there was something like this in twc for google searches and more.

tony
--
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.
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/69a83e4e-78f8-421b-9d3e-6fa236e1f964%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...