Bob
Its wise also close the Wikify widget </$wikify>
Tones
On Sunday, 13 September 2020 11:12:12 UTC+10, Bob Jansen wrote:
>
> I have found an answer in a question, Lost in transclusion, posted on 20
> August.
>
> Eric and Tones provide the information about transclusion and having to
> use the wikifi widget. Taking their example and adding the wikifi line in
> my main tiddler code makes things work correctly.
>
> New main tiddler code:
> <$button>
> <$wikify name="theuniqueid" text={{$:/TLS/uniqueid}}>
> <$action-createtiddler $basetitle="$:/TLS/new-id" $overwrite="yes" />
> <$action-setfield $tiddler="$:/TLS/new-id" text={{$:/TLS/uniqueid}}
> uniqueid=<<theuniqueid>> />
> />
> Add
> </$button>
>
>
> On Sunday, 13 September 2020 at 10:53:51 UTC+10 Bob Jansen wrote:
>
>> I have found an inconcistency in transclusion as follows:
>>
>> Main tiddler code:
>> <$button>
>> <$action-createtiddler $basetitle="$:/TLS/new-id" $overwrite="yes" />
>> <$action-setfield $tiddler="$:/TLS/new-id" uniqueid={{$:/TLS/uniqueid}} />
>> />
>> Add
>> </$button>
>>
>> :$/TLS/uniueid tiddler code:
>> {{$:/TLS/idcode}}{{$:/TLS/incremental}}
>>
>> which displays as YB27 when the idcode is YB and the incremental is 27
>>
>> in the main tiddler, if the action-setfield sets the text field, then the
>> value inserted is the transclusion of the uniqueid tiddler, namely, YB27
>>
>> if the maiin tiddler action-setfield code tries to set a field, then the
>> field's contents after actioning the code
>> is {{$:/TLS/idcode}}{{$:/TLS/incremental}} and not the transcluded value
>>
>> Anybody else found this?
>>
>> bobj
>>
>
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/e879ea89-1858-4a3f-8688-2fedf6f39946o%40googlegroups.com.