Transclusion through template --- preserve wikitex formatting

58 views
Skip to first unread message

Sandip Deshmukh

unread,
Aug 26, 2021, 1:39:54 AM8/26/21
to TiddlyWiki
My `ContactInformation'  tiddler contains:

<$list filter="[contains:participants<currentTiddler>!sort[on]]">
  <$link /><br>
  {{!!text}}<br><hr><br>
</$list>

My 'KG More1' tiddler's participants field contains [[King George]] and its text contains:

* Item 1
* Item 2

My 'KG More2' tiddler's participants field contains [[King George]] and its text contains:

Some large block of text

My 'King George' tiddler contains:

{{||ContactInformation}}

The wikitex formatting in 'KG More1' is lost when transcluded.

How do I ensure that it is preserved?

Eric Shulman

unread,
Aug 26, 2021, 2:34:46 AM8/26/21
to TiddlyWiki
On Wednesday, August 25, 2021 at 10:39:54 PM UTC-7 Sandip Deshmukh wrote:
My `ContactInformation'  tiddler contains:
<$list filter="[contains:participants<currentTiddler>!sort[on]]">
  <$link /><br>
  {{!!text}}<br><hr><br>
</$list> 
The wikitex formatting in 'KG More1' is lost when transcluded.
How do I ensure that it is preserved?

replace {{!!text}} with <$transclude mode="block"/>

enjoy,
-e

Sandip Deshmukh

unread,
Aug 26, 2021, 5:16:21 AM8/26/21
to TiddlyWiki
Thanks. That worked perfectly.

Soren Bjornstad

unread,
Aug 26, 2021, 11:55:51 AM8/26/21
to TiddlyWiki
For background on what's going on here, see Block Mode and Inline Mode in Grok TiddlyWiki.

Sandip Deshmukh

unread,
Aug 27, 2021, 1:27:28 AM8/27/21
to TiddlyWiki
Hello Soren,

Yes. I have gone through Grok TiddlyWiki. What an excellent reference it is.

Much of my confidence in tweaking TiddlyWiki comes from reading that book/ wiki.
Reply all
Reply to author
Forward
0 new messages