Strange usage of refnotes

97 views
Skip to first unread message

Ken

unread,
May 11, 2021, 4:25:40 PM5/11/21
to TiddlyWiki
I'm using refnotes version 1.6.4.

I have a tiddler which lists data values from data tiddlers identified by a tag:

-----
<table>
<tr><th>F1</th><th>F2</th><th>F3</th></tr>
<$list filter="[tag[Data Tiddlers]]">
<tr><td>{{##F1}}</td><td>{{##F2}}</td><td>{{##F3}}</td></tr>
</$list>
</table>

This sentence is footnoted. <<fnote "A footnote outside the table">>

<<showfnotes>>
-----

A data dictionary tiddler tagged as "Data Tiddlers" has the following names and values:

-----
F1: V1 
F2: V2 <<fnote "A Footnote">> 
F3: V3
-----

When the listing tiddler is shown, a footnote number appears after V2. If you hover over it, the text of the footnote is correctly displayed. However, the footnote doesn't appear in the <<showfnotes>>, although the one "hard coded" in the listing tittler 's body does (although it has the wrong number).

Does anyone know how I can make this work? Maybe a special filter in the <<showfnotes>> macro? Or is this a result of the very complicated syntax needed in TW to get things to work?

Any help is appreciated. Thanks!

Ken

Mohammad Rahmani

unread,
May 12, 2021, 12:08:38 AM5/12/21
to tiddl...@googlegroups.com
I am not sure if I correctly understand your question!

But <<showfnotes>> shows the footnotes in the HOST TIDDLER! I cannot see any reference in your host tiddler!
NOTE that most TW macros/widgets work on the tiddler wikitext NOT rendered html!

To see how you can use showfnotes when you TRANSCLUDE contents!

Hope this helps




Best wishes
Mohammad


--
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 tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/2c5811e9-477f-4c28-a5f5-caae4ac67762n%40googlegroups.com.

Mohammad Rahmani

unread,
May 12, 2021, 12:21:09 AM5/12/21
to tiddl...@googlegroups.com
See the attached example!
and see the result!

I am not sure if this is what you want!

Sidenote: I do not recommend this kind of use! It will break simply!


Best wishes
Mohammad


On Wed, May 12, 2021 at 12:55 AM Ken <kenneth...@gmail.com> wrote:
--
example-ken-transclude.json

Ken

unread,
May 12, 2021, 10:38:15 AM5/12/21
to TiddlyWiki

This works exactly as I want! Thank you!

You mention that this usage is fragile. Is it because the footnote information is actually being accessed twice - once while being transcluded in the data values, and again, for showfnotes, in the data tiddlers themselves? 

Pardon if my questions are mislead. I'm at the point of understanding where I can't easily tell the difference between dangerous or fragile usage and standard expected behavior. Waiting anxiously for the Grok Tiddlywiki book!

Thanks again for the solution. Since it's only being used in a private, personal wiki, I'm willing to take a chance with the fragility until I figure out another way to provide the functionality..

Take care,

Ken

Mohammad Rahmani

unread,
May 12, 2021, 10:47:24 AM5/12/21
to tiddl...@googlegroups.com
On Wed, May 12, 2021 at 7:08 PM Ken <kenneth...@gmail.com> wrote:

This works exactly as I want! Thank you!

You mention that this usage is fragile. Is it because the footnote information is actually being accessed twice - once while being transcluded in the data values, and again, for showfnotes, in the data tiddlers themselves? 

That's true! For example if you table does not display the key:value with fnote, still showfnotes will show it!

Pardon if my questions are mislead. I'm at the point of understanding where I can't easily tell the difference between dangerous or fragile usage and standard expected behavior. Waiting anxiously for the Grok Tiddlywiki book!

Thanks again for the solution. Since it's only being used in a private, personal wiki, I'm willing to take a chance with the fragility until I figure out another way to provide the functionality..

Go ahead!
Reply all
Reply to author
Forward
0 new messages