mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2025-12-06 02:30:46 -08:00
Missing documentation updates for #8972
This commit is contained in:
parent
52d73eb1a8
commit
033d5cf225
1 changed files with 27 additions and 0 deletions
|
|
@ -7,6 +7,8 @@ tags: Concepts Variables
|
|||
|
||||
! Setting Multi-Valued Variables
|
||||
|
||||
Generally, all the methods for setting variables implicitly set multi-valued variables, with the exception of the [[Set Widget|Set Widget]].
|
||||
|
||||
!! LetWidget
|
||||
|
||||
The <<.wid let>> widget allows multi-valued variables to be set in one operation, each to the complete list of results obtained from evaluating an attribute that is defined via a filtered transclusion. For example:
|
||||
|
|
@ -33,9 +35,34 @@ The `:let` filter run prefix (or its shortcut syntax `=>`) assigns the complete
|
|||
|
||||
!! [[title Operator]]
|
||||
|
||||
The simplest way to retrieve the complete list of values stored in a multi-valued variable is to use the [[title Operator]]. For example:
|
||||
|
||||
```
|
||||
[title(varname)]
|
||||
```
|
||||
|
||||
Because `title` is the default operator when the operator name is missing from a filter step, the following example is equivalent to the previous one:
|
||||
|
||||
```
|
||||
[(varname)]
|
||||
```
|
||||
|
||||
!! Multi-valued Parameters for Filter Operators
|
||||
|
||||
Certain filter operators can accept multi-valued parameters:
|
||||
|
||||
* [[function Operator]]
|
||||
* [[title Operator]]
|
||||
|
||||
For example:
|
||||
|
||||
```
|
||||
\function myfunc(tiddlers) [(tiddlers)sort[]]
|
||||
|
||||
<$let varname={{{ [all[tiddlers]limit[50]] }}}>
|
||||
<$text text={{{ [function[myfunc],(varname)] +[join[-]] }}}/>
|
||||
</$let>
|
||||
```
|
||||
|
||||
! Examples
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue