[TWC] Using Parameters with the tiddler macro doesn't work at all.

49 views
Skip to first unread message

Leo Staley

unread,
Feb 26, 2014, 7:03:51 PM2/26/14
to tiddl...@googlegroups.com
So I just sat down to learn myself all about transclusion, the tiddler macro, and list macro. 

Unfortunately, the information at http://tiddlywiki.org/#tiddler is not helpful.  

I follow its instructions exactly and nothing happens. It wasn't very explicit in much of its instructions either, which made actually doing that pretty hard. :(

1) I created a tiddler titled MyTemplates. The content, of this tiddler is 
!What I like
I like //$1// in [[$2|https://www.google.com/search?q=$2]]!


(It should have been more explicit on what exactly the content of the tiddler should have been. There really should be a more explicit example with actual tiddlers)

2) In another Tiddler, I pasted, 

<<tiddler [[MyTemplates::What I like]] with: "pineapple" "Piña Colada">> 


3) There isn't a step 3. After I did that and saved them both, the tiddler macro gave me an output of nothing. 

What gives? 





Leo Staley

unread,
Feb 26, 2014, 7:13:30 PM2/26/14
to tiddl...@googlegroups.com
I figured it out. The documentation is wrong. The content inside the brackets should be MyTemplates##What I like, NOT MyTemplates::What I like.  

I have now updated and corrected this on that documentation page. 

Eric Shulman

unread,
Feb 27, 2014, 12:30:23 AM2/27/14
to tiddl...@googlegroups.com
On Wednesday, February 26, 2014 4:13:30 PM UTC-8, Leo Staley wrote:
I figured it out. The documentation is wrong. The content inside the brackets should be MyTemplates##What I like, NOT MyTemplates::What I like.  
I have now updated and corrected this on that documentation page. 

Thank you for taking care of that!

Please note that, while the example was in error, the basic syntax documentation that precedes it was correct:
---------------------
<<tiddler [TextReference]>>
The TextReference can be any of...
a tiddler title <<tiddler SomeTiddler>>
a tiddler section <<tiddler [[Some Tiddler##Some Section]]>>
a tiddler slice <<tiddler "Some Tiddler::SliceName">>
---------------------

In your particular case, you defined a section using the "!sometext" syntax... but then, in the reference, you used the doubled-colon *slice* separator instead of the doubled-hash *section* seperator.

Leo Staley

unread,
Feb 27, 2014, 1:04:26 AM2/27/14
to tiddl...@googlegroups.com
Yup. My pleasure! I copied and pasted exactly what was in the example too.  My edit also made it clearer on what exactly needed to be in the content of the "MyTemplates" example tiddler in order for it to have a section. Previously it just said "section containing", which, if you haven't already gone over sections and slices in depth, you might not understand. 

But I do want to remark that the examples for the Text Reference are a bit confusing too. I was under the false impression for a while that to call a Tiddler section, you had to use the double brackets, and to call a slice, you had to use quotation marks. 

Cheers!
-Leo


--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/8PfAhKFiAdI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
Forward
0 new messages