Eric & Tones,
I do not know how to close the wikify tags as Tones has recommended. I have
two tags as there are two variables I need.
Code:
<$wikify name="theuniqueid" text={{$:/TLS/uniqueid}}>
<$wikify name="theartworkurl" text={{$:/TLS/artworkurl}}>
''Artwork unique ID: <<theuniqueid>>''
Artwork title: <$edit-text tiddler="$:/TLS/new-title" tag="input"
default=""/>
Type: <$edit-text tiddler="$:/TLS/artwork-type" tag="input" default=""/>
Medium: <$edit-text tiddler="$:/TLS/medium" tag="input" default=""/>
Size: <$edit-text tiddler="$:/TLS/size" tag="input" default=""/>
Year created: <$edit-text tiddler="$:/TLS/year-created" tag="input"
default=""/>
Number in edition: <$edit-text tiddler="$:/TLS/number-in-edition"
tag="input" default=""/>
Submitted to exhibition: <$edit-text
tiddler="$:/TLS/artwork-submitted-to-exhibition" tag="input" default=""/>
---
Purchased by: <$edit-text tiddler="$:/TLS/purchased-by" tag="input"
default=""/>
Date purchased: <$edit-text tiddler="$:/TLS/date-purchased" tag="input"
default=""/>
Price: <$edit-text tiddler="$:/TLS/price" tag="input" default=""/>
Status: <$edit-text tiddler="$:/TLS/status" tag="input" default=""/>
<$button>
<$action-setfield $tiddler="$:/TLS/incremental" text={{{
[{$:/TLS/incremental}add[1]] }}}/>
<$action-createtiddler
$basetitle={{$:/TLS/new-title}}
$template="Artwork Template"
tags="Artworks"
$overwrite="yes"
artwork_id=<<theuniqueid>>
artwork_url=<<theartworkurl>>
artwork_numberinedition={{$:/TLS/number-in-edition}}
artwork_price={{$:/TLS/price}}
artwork_status={{$:/TLS/status}}
artwork_yearofcreation={{$:/TLS/year-created}}
purchased_by={{$:/TLS/purchased-by}}
artwork_medium={{$:/TLS/medium}}
artwork_size={{$:/TLS/size}}
artwork_price={{$:/TLS/price}}
artwork_status={{$:/TLS/status}}
date_purchased={{$:/TLS/date-purchased}}
artwork_type={{$:/TLS/artwork-type}}
artwork_submitted_to_exhibition={{$:/TLS/artwork-submitted-to-exhibition}}
/>
<$action-deletetiddler $tiddler="$:/TLS/new-title" />
<$action-deletetiddler $tiddler="$:/TLS/medium" />
<$action-deletetiddler $tiddler="$:/TLS/size" />
<$action-deletetiddler $tiddler="$:/TLS/year-created" />
<$action-deletetiddler $tiddler="$:/TLS/number-in-edition" />
<$action-deletetiddler $tiddler="$:/TLS/purchased-by" />
<$action-deletetiddler $tiddler="$:/TLS/date-purchased" />
<$action-deletetiddler $tiddler="$:/TLS/price" />
<$action-deletetiddler $tiddler="$:/TLS/status" />
<$action-deletetiddler $tiddler="$:/TLS/artwork-type" />
<$action-deletetiddler $tiddler="$:/TLS/artwork-submitted-to-exhibition" />
Add new artwork
</$button>
If I add </wikify></wikify> as the last line of the code then the display
of the tiddler changes to
Add New artwork </wikify></wikify>
If I leave out the </wikify> then the display looks as it should and the
code does work.
What should I do?
bobj
On Sunday, 13 September 2020 at 13:06:25 UTC+10 TW Tones wrote:
> Touched on here
>
> - https://tiddlywiki.com/#Widgets%20in%20WikiText
> - https://tiddlywiki.com/#HTML%20in%20WikiText
> - https://tiddlywiki.com/#Transclusion%20and%20Substitution
> - https://tiddlywiki.com/#Transclusion%20in%20WikiText
>
> I searched tiddlywiki.com for "{{{" to get these results.
>
> Unfortunately the documentation is not totally consistent.
>
> Regards
> Tony
>
> On Sunday, 13 September 2020 12:43:14 UTC+10, Bob Jansen wrote:
>
>> Thanks Eric. By the way, where do all those brackets come from in the
>> inline filter and where is all that documented when to use which and how
>> many ?
>>
>> Bobj
>>
>> Dr. Bob Jansen
>> 122 Cameron St, Rockdale NSW 2216, Australia
>> Ph: +61 414 297 448 <+61%20414%20297%20448>
>> Skype: bobjtls
>>
>>
>> On 13 Sep 2020, at 12:12, Eric Shulman <[email protected]> wrote:
>>
>> On Saturday, September 12, 2020 at 6:12:12 PM UTC-7, Bob Jansen wrote:
>>>
>>> <$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>> />
>>> </$wikify>
>>> Add
>>> </$button>
>>>
>>
>> This can also be done without using $wikify, by using an "inline filter",
>> like this:
>> <$button> Add
>> <$vars id={{{ [{$:/TLS/idcode}addsuffix{$:/TLS/incremental}] }}}>
>> <$action-createtiddler $basetitle="$:/TLS/new-id" $overwrite="yes" />
>> <$action-setfield $tiddler="$:/TLS/new-id" text=<<id>> uniqueid=<<id>> />
>> </$vars>
>> </$button>
>>
>> -e
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "TiddlyWiki" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/tiddlywiki/8OIdMGfIV-A/unsubscribe.
>>
>> To unsubscribe from this group and all its topics, send an email to
>> [email protected].
>>
>>
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/tiddlywiki/f856baf6-18a7-41e0-a1d6-da474f7e1cd3o%40googlegroups.com
>>
>> <https://groups.google.com/d/msgid/tiddlywiki/f856baf6-18a7-41e0-a1d6-da474f7e1cd3o%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>>
--
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/5a28b16f-afdd-4312-8def-829017c1ab11n%40googlegroups.com.