Hi Rich, There's an example of a YouTube macro here:
http://tiddlywiki.com/#Formatting%20text%20in%20TiddlyWiki But you might like to try this as an experiment: Create a new system tiddler on your Hangouts wiki. Call it something like "$:/.rich/macros/youtube" - the dot before "rich" will keep this tiddler floating conveniently at the top of the list in the sidebar's System tab. Store the following three lines as the tiddler's content: \define yt(time, minSec) [[$time$|http://www.youtube.com/watch?v=$(youtubeid)$&t=$minSec$]] \end Make sure there's a linefeed at the end of the third line, i.e. check your typing cursor can go onto a fourth (empty) line below the word "\end". Give this tiddler the special tag "$:/tags/Macro". This makes the macro it defines available to all tiddlers. The macro it defines is called "yt" (a nice short name, because you may be using it a lot :) When you subsequently use the macro, you will have to supply two values, known here as "time" and "minSec". When you subsequently use the macro, "time" will be the time you want to display, e.g. "00:01:25", and "minSec" will be the time in YouTube's format, e.g. "001m25s". The values you supply will appear in the places where the macro's definition says $time$ and $minSec$. So… at the very start of each hangout tiddler, add a line like the following. Change the video ID to match the hangout in question, and place a blank line between this and the rest of the tiddler. \define youtubeid() EU-H0xhga08 This also defines a macro, but this macro is only available within this tiddler. Each hangout tiddler can define its own private "youtubeid" macro in this way, to save you having to repeat it for every scene of the hangout. Then… throughout the rest of the tiddler, you can replace things like this [[00:01:25|http://www.youtube.com/watch?v=EU-H0xhga08&t=001m25s]] with less bulky things like this: <<yt "00:01:25" "001m25s">> Ideally, you'd want to say just <<yt "00:01:25">> or <<yt "001m25s">> but I don't think TiddlyWiki itself provides the necessary conversion mechanism. (I hope someone will prove me wrong.) The conversion could be done with a "power macro" written in pure JavaScript, but that's a different can of worms. – æ -- 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. For more options, visit https://groups.google.com/d/optout.

