like this:
\define new(user,newtag)
<$action-sendmessage $message="tm-new-tiddler" title="This is newly created
tiddler" tags=" [[$user$]] [[$newtag$]]" text=<<now "Today is DDth, MMM
YYYY">>/>
\end
1 Make sure there is a username: {{$:/status/UserName}}<br>
2 Select tag:
<$select tiddler='$:/newtag'>
<option>A Tale of Two Cities</option>
<option>A New Kind of Science</option>
<option>The Dice Man</option>
</$select>
3 Create tiddler with two tags
* username: {{$:/status/UserName}}
* newtag: {{$:/newtag}}
4 Create new tiddler
<$button>
<$macrocall call $name="new" user={{$:/status/UserName}} newtag={{$:
/newtag}}/>
New Tiddler
</$button>
All the best
On Saturday, February 18, 2017 at 5:24:28 AM UTC+1, Steven Schneider wrote:
>
> Hi folks, I'm interested in creating new tiddlers with multiple tags, some
> transcluded and others established by a select widget.
>
> Here is my code:
> 1 Make sure there is a username: {{$:/status/UserName}}<br>
>
> 2 Select tag:
> <$select tiddler='$:/newtag'>
> <option>A Tale of Two Cities</option>
> <option>A New Kind of Science</option>
> <option>The Dice Man</option>
> </$select>
>
> 3 Create tiddler with two tags
>
> * username: {{$:/status/UserName}}
> * newtag: {{$:/newtag}}
>
> 4 Create new tiddler
>
> <$button>
> <$action-sendmessage $message="tm-new-tiddler" title="This is newly
> created tiddler" tags="{{$:/status/UserName}} {{$:/tagword}}" text=<<now
> "Today is DDth, MMM YYYY">>/>
> New Tiddler
> </$button>
>
>
> As you'll see, my tags are interpreted literally:
> {{$:/status/UserName}} {{$:/tagword}}
>
> Rather than as the transcluded values.
>
> I'd also like to use the username in the title of the tiddler, but have
> the same lack-of-transclusion-activity problem.
>
> I'm a bit stumped. Suggestions?
>
> Thanks!
>
> //steve.
>
>
>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/f4ca6aab-e616-4a37-8c71-7d629f034658%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.