1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-09-30 16:00:46 +00:00

Clarify set widget docs

This commit is contained in:
Jermolene 2014-11-14 09:24:29 +00:00
parent 88c4fbd2d7
commit 1d08d2d7dc

View File

@ -24,7 +24,7 @@ The simplest way of using set variable widget assigns a string to a variable. Th
```
<$set name="myVariable" value="Some text">
<<myVariable>>
<$text text=<<myVariable>>/>
</$set>
```
@ -32,7 +32,7 @@ Both the name and value attributes can be transcluded. For example:
```
<$set name=<<anotherVariable>> value={{template!!text}}>
<<myVariable>>
<$text text=<<myVariable>>/>
</$set>
```
@ -42,7 +42,7 @@ This form of the set variable widget chooses one of two specified values accordi
```
<$set name="myVariable" filter="[all[current]field:title[myMagicTitle]]" value="It's magic" emptyValue="It's not magic">
<<myVariable>>
<$text text=<<myVariable>>/>
</$set>
```
@ -52,6 +52,6 @@ This form of the set variable widget evaluates the filter and assigns the result
```
<$set name="myVariable" filter="[tag[Introduction]]">
<<myVariable>>
<$text text=<<myVariable>>/>
</$set>
```