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

Filtered Attribute Values

15 juin 2023 à 4h52

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.

Depuis : 5.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/]] }}} />

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.