I see that it is possible in TW Classic to pass parameters when calling a 
template <http://tiddlywiki.org/#Transclusion>. From my MediaWiki 
experience, this is what I understand to be a fairly standard templating 
technique. From what I've seen so far of TW, "template" seems to have a 
whole other meaning, so please bear with me.

What I'm trying to achieve, as the TWC example I linked to above shows, is 
creating a template, let's call it tiddler "A". This template tiddler 
contains mostly formatting information, such as defining a table, and the 
placement of parameters ($1..$9) within the specified format. Then we have 
tiddler "B", which invokes tiddler "A", passing actual data to the 
parameters. When tiddler 'B" is rendered, it displays the data using the 
formatting found in tiddler "A". That, to me, is the function of a wiki 
template. That is what I'm trying to achieve in TW5.

Does anyone know how to do this in TW5? I have tried following the examples 
from TWC, but it just doesn't seem to work for me.

EDIT: While I've been typing this, I have seen that there needs to be a 
"tiddler macro" to make the instruction work. I hadn't noticed that before. 
I assumed the command...

<<tiddler [[Template]] with: "param1" "param2" "paramX">>

...was a built-in part of the TW core. Does anyone know if this macro will 
work as-is in TW5? I'm running TW5.1.9 on my wiki. How do I use the macro? 
I assume I just copy the code to the top of Tiddler "B" in my example 
above, then follow it with the <<tiddler ...>> invocation. Is that right?

However, when I open the tiddler macro <http://tiddlywiki.org/#tiddler> I 
can only see the instructions for how use it, not the macro code itself. 
Similar to the template documentation I'm used to seeing in MW. Where is 
the macro code? I see the instructions are tagged with *[[Core Macros]] 
Macro*, so maybe I'm wrong on this, and it is a core macro from TWC, one 
which isn't in TW5. I'm confuzzled!

Sorry for my n00bishness. I'll stop now before I get everyone confused.

-- 
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/6d32e2f0-16ca-446c-a244-54e8ac0eed43%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to