Pudding,

To be honest I get a bit confused reading your "Questions". The best I can 
offer right now is suggest you look at this reference work (IN Draft) I am 
building and see if it can answer some of your questions. Feedback 
appreciated.

Variables, Parameters and transclusions 
<http://tiddlywiki.psat.com.au/#Variables%2C%20Parameters%20and%20transclusions>

Regards
Tony

On Tuesday, February 12, 2019 at 4:53:03 AM UTC+11, pudding wrote:
>
> Hello! I am planning to upgrade to 5.1.9 today, so I initiated a blank 
> wiki to test it out. For context, I am running TiddlyWiki on Node.js and 
> tested the below on Waterfox and Safari.
>
> I have two issues:
>
> (1) Tiddlers tagged with $:/tag/Macros do not animate properly after 
> saving. It jumps to the top of the page instead of the tiddler itself. This 
> only happens when you save it; it behaves normally when you discard the 
> changes.
>
> I've tried other shadow tiddlers (entering and exiting the editing 
> interface by either saving or discarding changes) and cannot replicate the 
> same pattern, but the three macro shadow tiddlers I've tried -- 
> $:/core/macros/toc, $:/core/macros/tabs and $:/core/macros/color-picker 
> -- give me the same problem. It doesn't seem to matter it is a modified 
> shadow tiddler or not.
>
> I have also tagged a normal tiddler with $:/tag/Macros and it starts to 
> jump to the top of the page as well. Removing the tag returns it to normal 
> behaviour.
>
> It is a minor issue, but the first couple of times it happened it really 
> confused me. I would press the edit button thinking I'm still at the same 
> tiddler. Sorry if it's already been brought up. Is there something I 
> should've done to fix this?
>
> ---
>
> (2) This is less of an issue but more of a... could someone ELI5 this to 
> me question.
>
> When I first started using TW, I followed this post 
> <https://groups.google.com/forum/#!starred/tiddlywiki/DNNRxc94MJM> to 
> make my table of contents collapse automatically. I'm checking out the toc 
> macro in 5.1.9 and I see that this line:
>
> <$set name="toc-state" value=<<qualify 
> """$:/state/toc$path$-$(currentTiddler)$""">>>
>
> has been cleaned up to
>
> <$qualify name="toc-state" title={{{ 
> [[$:/state/toc]addsuffix<__path__>addsuffix[-]addsuffix<currentTiddler>] 
> }}}>
>
> I changed the title to {{{ [[$:/state/toc/]<tag>] }}} and it worked but 
> to be honest I have no idea what I was doing; I was just trying to make 
> sure it's as close to the code in the post I linked above.
>
> [$:/state/toc] in square brackets because it's plain text value... right?
>
> What's the difference between the changes I made with {{{ 
> [[$:/state/toc/]$(tag)$] }}} ? Wait or is it $tag$ ???
>
> In the qualify macro, the triple curly brackets are used because it needs 
> to tranclude the addsuffix filters... right? So, if I don't need to 
> transclude filter values, would it mean that I can just change it to 
> """$:/state/toc/$tag$""" ? Am I getting it completely wrong? I am, right? 
> Gosh.
>
> Then... Looking at the code Andreas made in the post I linked, could 
> anyone ELI5 how exactly does it work differently than the default toc macro 
> here?
>
> I know the reveal widget has been modified to look for <<currentTiddler>> 
> instead of the text "open", but how does <<currentTiddler>> fit into the 
> value set in <<toc-state>>?
>
> Why is it that the reveal widget sets to "x-all-close" when it matches in 
> toc-linked-selective-single-expandable-body but not in 
> unlinked-selective-single-expandable-body?
>
> Sorry for the long list of questions... I've been using this macro for so 
> long and it's beginning to bug me that I don't understand how it works. 
> Would greatly appreciate some pointers. To be honest, all the brackets 
> still confuse me today, even though I've starred this and refer to it 
> frequently 
> <https://groups.google.com/d/msg/tiddlywiki/3DyHxqqFQbg/1JP6_DzeAAAJ>. 
> Thank you!
>
> Best,
> pudding
>
>

-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/dae1a4ac-272e-484e-bfb6-f42fe394ce9a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to