Wikitext in $list widgets

57 views
Skip to first unread message

Luis Gonzalez

unread,
Dec 4, 2019, 3:25:07 AM12/4/19
to TiddlyWiki
I saw some wikis (http://tw5magick.tiddlyspot.com, the "List Questions" tiddler) with this code:

<$list filter="[tag[Quiz]tags[]] -Quiz +[sort[title]]">
! <$view field="title"/>
<$list filter="[is[current]tagging[]] +[tag[Quiz]] +[sort[title]]">
<$link><$view field="title"/></$link>
</$list>
</$list>

And it renders as wikitext with the title as Title1.

But if I put this code in my wikis the wikitext is not preserved. I can't find why...


Mark S.

unread,
Dec 4, 2019, 12:12:04 PM12/4/19
to TiddlyWiki
I think there was a change to how the list widget handles styles.  Put a linebreak after the first <$list> widget and the ! format should work (it did on mine).

But now you might not like the additional space before and after the title. This sort of unexpected thing is why I often end up using html to format rather than wikitext.

TiddlyTweeter

unread,
Dec 4, 2019, 12:43:37 PM12/4/19
to tiddl...@googlegroups.com
Mark S. This sort of unexpected thing is why I often end up using html to format rather than wikitext.

I often think we need notes for "The Not So Well Documented". I often get tripped up by when to add newlines or not. I realised, far too slowly, its a contextual lottery.

Might be worth advising users to add empty lines in testing creations that seem not to work?

TT 

TonyM

unread,
Dec 4, 2019, 4:36:26 PM12/4/19
to TiddlyWiki
This need to place a blank line before some wikitext inside widgets, even html is common through out tiddlywiki. Its even noted sometimes in the documentation.

I do as TT said myself.

Reply all
Reply to author
Forward
0 new messages