Hello,
i give an example
Name of the Tiddler
*Körpertyp: 2020-03-11*
introduction of the caption
*Messwert am*
string to split
*2020-03-11*
indicatet string: *11.03.2020*
caption complete
* Messwert am 11.03.2020*
Also from the tiddlertitle* Körpertyp: 2020-03-11 *i want to have the
* Date-string (YYYY-MM-DD).*
then i must have the split reverse for the date make* in Date-german-format
(DD.MM.YYYY)*
The caption should be
* Messwert am (Date-german-format)*
and it is a lot of tiddler with this titlestructure..
*question: *Is it possible to have an filter like
{{{ [<currentTiddler>removeprefix[Körpertyp:]][split[-]reverse[]join[.]] }}}
Am Montag, 23. März 2020 11:44:31 UTC+1 schrieb TonyM:
>
> Gerald,
>
> If what you intended worked, the result would be;
>
> [[<currentTiddler>removeprefix[Körpertyp:]]split[-]reverse[]join[.]]
> Both [[ and ]] are invalid
>
> Another problem I see is because variables inside filters, and fields
> etc.... only use one set of brackets
> <$vars datum={{{ [<<datum0>>split[-]reverse[]join[.]] }}} >
> Would be
> <$vars datum={{{ [<datum0>split[-]reverse[]join[.]] }}} >
>
> In filters only one bracket is required, but outside two brackets are
> needed otherwise they would be confused with HTML tags `<p>` etc...
>
> Lets see if that gets you any further.
>
> Bu the way one way to combine filters is using the subfilter operator
> https://tiddlywiki.com/#subfilter%20Operator
>
> If you are still lost perhaps explain what you want rather than how it
> does not work.
>
> Regards
> Tony
>
>
> On Monday, March 23, 2020 at 9:25:40 PM UTC+11, Gerald Weis wrote:
>>
>> Hi friends,
>>
>> i am trying to combine 2 filters.
>>
>> but its don't work
>>
>> thats my code and i don't know whats wrong.
>>
>> \define tabcaption()
>> <caption>Messergebnis am
>> <$vars datum0={{{ [<currentTiddler>removeprefix[Körpertyp:]] }}} >
>> <$vars datum={{{ [<<datum0>>split[-]reverse[]join[.]] }}} >
>> <<datum>>
>> </$vars>
>> </$vars>
>> </caption>
>> \end
>>
>> Whats my Mistake
>>
>> Tahnks for Help
>>
>
--
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/a486ff81-6e0b-439c-8171-86bc10da5b47%40googlegroups.com.