Sjaak Adriaanse
2018-12-10 18:15:35 UTC
Hi all,
I keep bumping into the same problem: the characters I use in coding,
especially the various kind of brackets (including quotes), are not
interpreted the way I think they will be. This keeps confusing me.
Is this documented clearly somewhere? Where (and why) are some brackets
interpreted as one thing, and where as another, or not at all as something
special?
To start with: why are double square brackets used for both 1) a link to a
tiddler, 2) keeping a string with spaces in it together? On several
occasions I used them for the second purpose and saw a link appearing where
I did not want one.
I will give a small example here. This is meant to show what confuses me,
not a plea to solve this little problem for me.
I have a number of small text tiddlers that are transcluded in larger
tiddlers.
Now I want to start the transcluded version with the title in 2-level
header, followed by the text 'src' in superscript, that links to the text
tiddler itself (the source, hence 'src'). This makes it easy for me to jump
to the source tiddler if I want to change the text. So I defined a macro:
\define srct()
!!{{!!title}}^^[[src|{{!!title}}]]^^
\end
and put
<<srct>>
as first (non-define) line of the small tiddler. I hope this is all clear.
The macro call produces the title header all right, followed by 'src' in
superscript, but the link on 'src' is not interpreted and goes to the
string "{{!!title}}". ??????? Why doesn't TW fill in the actual title there?
Confused,
Sjaak
I keep bumping into the same problem: the characters I use in coding,
especially the various kind of brackets (including quotes), are not
interpreted the way I think they will be. This keeps confusing me.
Is this documented clearly somewhere? Where (and why) are some brackets
interpreted as one thing, and where as another, or not at all as something
special?
To start with: why are double square brackets used for both 1) a link to a
tiddler, 2) keeping a string with spaces in it together? On several
occasions I used them for the second purpose and saw a link appearing where
I did not want one.
I will give a small example here. This is meant to show what confuses me,
not a plea to solve this little problem for me.
I have a number of small text tiddlers that are transcluded in larger
tiddlers.
Now I want to start the transcluded version with the title in 2-level
header, followed by the text 'src' in superscript, that links to the text
tiddler itself (the source, hence 'src'). This makes it easy for me to jump
to the source tiddler if I want to change the text. So I defined a macro:
\define srct()
!!{{!!title}}^^[[src|{{!!title}}]]^^
\end
and put
<<srct>>
as first (non-define) line of the small tiddler. I hope this is all clear.
The macro call produces the title header all right, followed by 'src' in
superscript, but the link on 'src' is not interpreted and goes to the
string "{{!!title}}". ??????? Why doesn't TW fill in the actual title there?
Confused,
Sjaak
--
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 post to this group, send email to ***@googlegroups.com.
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/1b4be154-10b6-4d7e-9fc7-bc3259d662b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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 post to this group, send email to ***@googlegroups.com.
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/1b4be154-10b6-4d7e-9fc7-bc3259d662b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.