Bob,
My updated cheat sheet is in progress. Attached, Final to be published
first here https://anthonymuscio.github.io/
to add a space
addprefix[ ]
or you can use it in
join[ ]
addsuffix[ ]
and possibly other places
Dont kick yourself.
Tones
On Monday, 28 September 2020 10:11:29 UTC+10, Bob Jansen wrote:
>
> Eric and Tones,
>
> your explanation makes things clearer and the cheat sheet helps. It just
> adds to my argument though, the documentation needs to be updated. For
> example, searching for concatenation provides the tiddler on using macros
> for this but no mention of when using in a filter. Tones, I think your
> cheat sheet should be included in the Tiddlywiki wiki documentation right
> up front to make things clearer for naive users like me.
>
> One more thing, is there a way to append a space character in the filter?
> I've tried
> <$action-setfield
> $field="exhibition_id"
> $value={{{ [{!!exhibition_id}addsuffix{"
> "}addsuffix{$:/TLS/exhibition_id}] }}}
>
> Also tried
>
> <$list filter="[tag[Mark]]">
> <$set name="spaceChar" value=" ">
> <$action-setfield
> $field="exhibition_id"
> $value={{{
> [{!!exhibition_id}addsuffix{<spaceChar>}addsuffix{$:/TLS/exhibition_id}] }}}
> />
> </$list>
>
> but the space character does not seem to be added to the field. I need a
> space character between each id value.
>
> bobj
>
> On Monday, 28 September 2020 at 08:49:11 UTC+10 TW Tones wrote:
>
>> Bob,
>>
>> There is an older resource on this here http://pv5.tiddlyspot.com however
>> I will update my own abridged version and share a cheat sheet today.
>>
>> Regards
>> Tony
>>
>> On Sunday, 27 September 2020 16:52:29 UTC+10, Bob Jansen wrote:
>>>
>>> I know and am very thankful of the many items of advice I have received
>>> in the past. But I am still frustrated - there must be some core element I
>>> am not understanding.
>>>
>>> The main issue is how to address items in wikitext, {{ [[ {{{ << < etc.
>>> I know this all depends on how the item is being used but a simple cheat
>>> sheet with many examples would be really useful. I don't find the
>>> Tiddlywiki documentation easy to follow, bits are all over the place and
>>> none of the examples address my problems I find.
>>>
>>> For example, why does this not work?
>>>
>>> <$button>
>>> <$action-setfield
>>> $tiddler="$:/TLS/exhibition_id"
>>> $value={{!!exhibition_id}}
>>> />
>>> <!--append the exhibition_id to the exhibition id field in each
>>> artwork-->
>>> <$list filter="[tag[Mark]]">
>>> <$action-setfield
>>> $field="exhibition_id"
>>> $value=<<TLSconcatenate {{!!exhibition_id}}
>>> {{$:/TLS/exhibition_id}}>>
>>> />
>>> </$list>
>>>
>>> Link Artworks to Exhibition
>>> </$button>
>>>
>>>
>>> The result is the string {{!!exhibition_id}} {{$:/TLS/exhibition_id}}
>>> stored in the exhibition_id field of each artwork selected and not the
>>> transcluded values.
>>>
>>> TLSconcatenate is a simple macro to concatenate two strings
>>>
>>> \define TLSconcatenate(head tail) $head$$tail$
>>>
>>> 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/11241312-f1b5-499e-828e-b8a1d7f1a7ebo%40googlegroups.com.