Thanks everyone for the replies. My apologies for my petulance last night,
I just couldn't see any way that I'd be able to continue using TW if I had
to learn JavaScript first, which I'm glad to see isn't going to be the case.
On Monday, September 14, 2015 at 7:26:24 AM UTC+12, Eric Shulman wrote:
>
> Thus, in TWC you write:
> <<tiddler NameOfTiddler with: arg1 arg2 arg3 ...>>
> while in modern TW you write:
> <$vars var1="arg1" var2="arg2" var3="arg3" ...>
> {{NameOfTiddler}}
> </$vars>
>
Thank you so much for this Eric, that is exactly what I wanted to know how
to do! I was looking at the Data Dictionary tiddler types and the
TranscludeWidget in TW5, but couldn't find anything approximating the
simple, elegant solution you have provided here.
The maximum limit of nine numerical parameters was a bit of downer when I
first saw it in TWC, and I was starting to formulate creative solutions to
get around that limit, such as breaking my template into multiple smaller
templates, passing nine arguments to each one. I'm glad I can now use
infinite, named parameters under TW5. That really is a relief.
As for a use case, this is just for an infobox
<https://en.wikipedia.org/wiki/Infobox>, which is commonly floated to the
right of a wiki page, near the top of the article. With my TW5 wiki though,
I'll probably place them horizontally across the full width of the tiddler,
because the sidebar in TW leaves little room for float:right.
Eric's solution above makes invoking a template and passing parameters to
it, from another tiddler, a breeze. Now I'm off to work out how to create
those named parameters on the target template itself. Wish me luck! :-)
--
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/29d0640b-f07b-4e40-82ff-6adbc2dcc0ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.