<$set name="testVar" value="WikiLink ~NoWikiLink">
<!-- I expect <$wikify> to honour the tilde, but it does not -->
<$wikify name="testOutput1" text=<<testVar>> output="html"> <<testOutput1>> </$wikify>
<!-- I expect <$text> to have no effect, but it results in correct behaviour from <$wikify> -->
<$wikify name="testOutput2" text="<$text text=<<testVar>>/>" output="html"> <<testOutput2>> </$wikify>
</$set>
WikiLink NoWikiLink
I don't understand why the <$wikify> widget does not honour the tilde.
I don't understand why adding a <$text> widget causes the <$wikify> widget to behave as expected.
I'm sure this makes sense to someone with intimate knowledge of how these widgets operate, but it is counterintuitive to newbies who expect <$wikify> to render wikitext, and <$text> to do the opposite, as described in TextWidget help.
Is there a better solution than the <$text> one I stumbled across?
--
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 tiddl...@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/d7b6c1ce-b05b-48cc-99af-999e347b50b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<$list filter="[tag[InstalledPlugin]sort[title]]"> <$setvars pluginNames="[input[][][, ]]" _input={{!!plugin.names}}> <$wikify name="pluginsHeading" text="""! <$text text=<<pluginNames>>/>""" output="html"> <<pluginsHeading>> </$wikify> </$setvars> <$transclude mode="block" tiddler=<<currentTiddler>>/></$list>
<$set name="testVar" value="! My Heading">
<$wikify name="testOutput1" text=<<testVar>> output="html">
<$text text=<<testOutput1>>/> <<testOutput1>> </$wikify>
<$wikify name="testOutput2" text="<$text text=<<testVar>>/>" output="html">
<$text text=<<testOutput2>>/> <<testOutput2>> </$wikify>
</$set>
<h1 class="">My Heading</h1>
<p>! My Heading</p>
! My Heading
<$set name="testVar" value="WikiLink ~NoWikiLink">
<!-- I expect <$wikify> to honour the tilde, ... -->
<$wikify name="testOutput1" text=<<testVar>
> output="html">
<$set name="tv-wikilinks" value="no">
<<testOutput1>>
</$set>
</$wikify>
</$set>
<$set name="testVar" value="! Wiki Title – WikiTitle – ~WikiTitle">
<!-- I expect <$wikify> to honour the tilde, ... -->
<$wikify name="testOutput1" text=<<testVar>
> output="html">
<$set name="tv-wikilinks" value="no">
<<testOutput1>>
</$set>
</$wikify>
</$set>
--
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 tiddl...@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/6f49ddac-336e-4f83-b5db-cca634f2e9f3%40googlegroups.com.
--
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 tiddl...@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/b442eb9c-b992-4347-8563-5d7a8d1d6943%40googlegroups.com.
You're reinforcing my point that when using a <<variable>> with <$wikify> there are too many interactions going on for anyone other than a guru to understand, none of which are documented anywhere. And it appears you have to use different methods to render a heading or suppress wikilinks in <$wikify> via a <<variable>>, i.e., there is no single method that works for both scenarios. Everyday users like me dealing with this just have to experiment with various combinations of elements until we blunder into a solution, and/or call out for help on this list.
Thank you for your patient explanations of what has been happening with my tiddlyscript attempts. I'm sure it will benefit other users grappling with similar problems.
David.
On Tuesday, 22 January 2019 06:42:02 UTC+9:30, Jeremy Ruston wrote:Hi DavidThe first wikify widget in the example below generates a string of HTML code "<h1 class="">My Heading</h1>” which you can see when it is directly displayed by the text widget. When you use the double angle bracket syntax to render it, that HTML string gets wikified a second time, and the <h1> HTML tag is rendered into the equivalent wikitext.In the case of the second wikify widget, you’re wikifying a text widget that renders the plain text of the variable. Thus, the result stored in the testOutput2 variable is the plain text of the original testVar. Then, when you render it with double angle brackets, it is wikified again, but in inline mode, and so the “!” isn’t recognised as a heading because it is block level.Best wishesJeremy
--
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 tiddl...@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/2fdb4a2d-d7b6-49d3-913a-f1c4f6ef9c77%40googlegroups.com.
--
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 tiddl...@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/8ed1a6f1-2828-429b-a7e2-0998faf78e4a%40googlegroups.com.