Hi

I have been testing out transclusion of data from a data dictionary. Given 
a tiddler titled 'Test Data', with the following content:

test-text:<h2>Title</h2>this is text<br>and some more text<br>
test-code:\define myMacro() <ul><$list 
filter="[tag[widget]]"><li>{{!!title}}</li></$list></ul>
test-wiki:;Definition<br>:Text of definition

If I then transclude the data like this:

{{Test Data##test-text}}
{{Test Data##test-code}}
{{Test Data##test-wiki}}

The html and one line macro render correctly; however, the wikitext markup 
isn't rendered correctly due to the interpretation of the line break (even 
thought the markup on the first line renders correctly.) The same would 
apply to a line-break within a multi-line macro definition or fragment of 
code.

Is there any way of inserting the necessary line-breaks into the code and 
wikitext fragments in order that they render correctly when transcluded?

regards 

On Saturday, May 31, 2014 10:26:25 PM UTC+2, Jeremy Ruston wrote:
>
> Hi Howard
>
> I can create a new tiddler on tiddlywiki.com and add this text:
>
> <$text text={{$:/palettes/Vanilla##page-background}}/>
>
> As expected, it outputs #ececec, the default page background colour.
>
> Can you show some examples that haven't been working?
>
> Best wishes
>
> Jeremy
>
>
> On Sat, May 31, 2014 at 3:59 PM, HowardM <[email protected] 
> <javascript:>> wrote:
>
>> I can transclude the contents of fields and dictionary entries using the 
>> formats {{tiddler!!field}} and {{tiddler##index}} but I can only make the 
>> former (field) work as a macro or widget parameter.   Transcluding a data 
>> dictionary entry as a parameter - say parameter={{tiddler##index}} - 
>> results in the widget or macro giving no result.
>>
>> Is this one of the deliberate limitations mentioned in the documentation 
>> on data tiddlers or am I missing something ?
>>
>> I haven't tried this before upgrading to TW5.12 so I don't know if it is 
>> specific to this version.
>>
>> Grateful for any advice
>>
>> -- 
>> 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 [email protected] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> Visit this group at http://groups.google.com/group/tiddlywiki.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Jeremy Ruston
> mailto:[email protected] <javascript:>
>  

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to