This page is part of a static HTML representation of the TiddlyWiki at


 23rd October 2021 at 4:24pm


The setmultiplevariables widget assigns values to multiple variables where the names and values of the variables are specified as separate filter.

Content and Attributes

The content of the <$setmultiplevariables> widget is the scope for the value assigned to the variable.

$namesFilter evaluating to the names of a list of variables to assign
$valuesFilter evaluating to the values corresponding to the list of names specified in $names


Here is an example of a convoluted way to display the values of the fields of the tiddler "HelloThere":

<$setmultiplevariables $names="[[HelloThere]fields[]addprefix[demo-]]" $values="[[HelloThere]fields[]] :map[[HelloThere]get<currentTiddler>]">
<$list filter="[variables[]prefix[demo-]sort[]]">
''<$text text={{{ [<currentTiddler>removeprefix[demo-]] }}}/>'': <$text text={{{ [<currentTiddler>getvariable[]] }}}/>

That renders as:

  1. created: 20130822170200000
  2. list: [[A Gentle Guide to TiddlyWiki]] [[Discover TiddlyWiki]] [[Some of the things you can do with TiddlyWiki]] [[Ten reasons to switch to TiddlyWiki]] Examples [[What happened to the original TiddlyWiki?]]
  3. modified: 20231223102201587
  4. tags: TableOfContents
  5. text: !!.tc-hero-heading ''Welcome to TiddlyWiki, a unique [[non-linear|Philosophy of Tiddlers]] notebook for [[capturing|Creating and editing tiddlers]], [[organising|Structuring TiddlyWiki]] and [[sharing|Sharing your tiddlers with others]] complex information'' Use it to keep your [[to-do list|TaskManagementExample]], to plan an [[essay or novel|"TiddlyWiki for Scholars" by Alberto Molina]], or to organise your wedding. Record every thought that crosses your brain, or build a flexible and responsive website. TiddlyWiki lets you choose where to keep your data, guaranteeing that in the decades to come you will [[still be able to use|Future Proof]] the notes you take today. !! ''Quick Start'' <div class="tc-cards tc-action-card"> <$list filter="[tag[Quick Start]]"> <$macrocall $name="flex-card" bordercolor={{!!color}} textcolor={{!!text-color}} backgroundcolor={{!!background-color}} captionField="caption" descriptionField="text"/> </$list> </div> <div class="tc-cards tc-small"> <$link to="中文社区 - Chinese Community" class="tc-btn-big-green tc-card"> 中文社区<br/>Chinese Community </$link> </div> !! ''Find Out More'' <div class="tc-cards"> <$list filter="[tag[HelloThumbnail]]"> <$macrocall $name="flex-card" captionField="caption" descriptionField="text"/> </$list> </div> !! ''Community'' <div class="tc-cards" style="font-size:0.7em;text-align:center;margin:3em auto;"> <a href="" class="tc-btn-big-green" style="border-radius:4px;background-color:#FF8C19;" target="_blank" rel="noopener noreferrer"> {{$:/core/images/help}} ~TalkTW </a> <a href="" class="tc-btn-big-green" style="border-radius:4px;background-color:#e52d27;" target="_blank" rel="noopener noreferrer"> {{$:/core/images/video}} ~YouTube </a> <a href="" class="tc-btn-big-green" style="border-radius:4px;background-color:#1DA1F2;" target="_blank" rel="noopener noreferrer"> {{$:/core/images/twitter}} Twitter </a> <a rel="me" href="" class="tc-btn-big-green" style="border-radius:4px;background-color:#2b90d9;" target="_blank" rel="noopener noreferrer"> {{$:/core/images/mastodon}} Mastodon </a> <a href="" class="tc-btn-big-green" style="border-radius:4px;background-color:#444;" target="_blank" rel="noopener noreferrer"> {{$:/core/images/github}} ~GitHub </a> <a href="" class="tc-btn-big-green" style="border-radius:4px;background-color:#753a88;background-image:linear-gradient(to left,#cc2b5e,#753a88);" target="_blank" rel="noopener noreferrer"> {{$:/core/images/gitter}} Gitter </a> <a href="" class="tc-btn-big-green" style="border-radius:4px;background-color:#FF4500;" target="_blank" rel="noopener noreferrer"> {{Reddit Logo}} Reddit </a> <a href="" class="tc-btn-big-green" style="border-radius:4px;background-color:#0c2c66;" target="_blank" rel="noopener noreferrer"> {{Open Collective Logo}} Open Collective </a> </div> !! ''Testimonials & Reviews'' <div class="tc-cards"> <$list filter="[tag[Testimonial]]"> <$macrocall $name="flex-card" class="tc-card-quote" captionField="caption" descriptionField="text"/> </$list> </div>
  6. title: HelloThere
  7. type: text/vnd.tiddlywiki