This page is part of a static HTML representation of the TiddlyWiki at https://tiddlywiki.com/

Filtered Attribute Values

15th June 2023 at 4:52am

Filtered attribute values are indicated with triple curly braces around a Filter Expression. The value will be the first item in the resulting list, or the empty string if the list is empty.

Introduced in v5.2.2 To improve readability, newlines can be included anywhere that whitespace is allowed within filtered attributes.

This example shows how to add a prefix to a value:

<$text text={{{ [<currentTiddler>addprefix[$:/myprefix/]] }}} />

Warning
The value of the attribute will be the exact text from the first item in the resulting list. Any wiki syntax in that text will be left as-is.