[tw5] Concatenate this...

2019-07-22 Thread Watt
Ps and call it as <> if wikified.

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/7f685ed7-8cee-4e0e-9620-3598028901b9%40googlegroups.com.


[tw5] Concatenate this...

2019-07-22 Thread Watt
You're in the right direction but I think you have to define the concatenation 
as a local macro at the top of the edit area put this;

\define final()
{{$:/_opTaskStore!!taskname}} - ({{{ [[]make[%uuid%]] }}})
\end

And then call it where you need it with;

<>

The uuid part may give problems. Sometimes it's necessary to wikify a 
calculation to render it correctly. If so define final as above then put

<$wikify name="myfinal" text=<> >

Your code here.



Hope that works, somebody will correct me if not I hope. Lie down in a darkened 
room and get your strength up before you look up wikify in the docs!

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/1c9e1280-11a8-4d5d-9593-aaffb7e3dc73%40googlegroups.com.


[tw5] Concatenate this...

2019-07-22 Thread MagoArcade
Ok - so I'm trying to use a concatenated string as a field value in a new 
tiddler. Existing code:

<$action-sendmessage $message="tm-new-tiddler" $param="_templateTask" 
title={{$:/_opTaskStore!!taskname}} 
shorttext={{$:/_opTaskStore!!description}} tmap.id={{{ [[]make[%uuid%]] }}} 
assignedto={{$:/_opTaskStore!!assignedto}} 
caption={{$:/_opTaskStore!!description}} tags="[[Task]]" 
color={{$:/_opTaskStore!!color}} />

I'm waning "title" to be a concatenation of two values:

{{$:/_opTaskStore!!taskname}}

and 

{{{ [[]make[%uuid%]] }}}

also with some formatting. Pseudo code:

final = {{$:/_opTaskStore!!taskname}} + " (" + {{{ [[]make[%uuid%]] }}} + 
")"

making final code looking something like:

<$action-sendmessage $message="tm-new-tiddler" $param="_templateTask" 
title=<> shorttext={{$:/_opTaskStore!!description}} tmap.id={{{ 
[[]make[%uuid%]] }}} assignedto={{$:/_opTaskStore!!assignedto}} 
caption={{$:/_opTaskStore!!description}} tags="[[Task]]" 
color={{$:/_opTaskStore!!color}} />

How can I achieve this (btw - my head's shot with macros/variables/brackets 
- in short - I feel I've tried everything and short of giving infinite 
monkeys infinite typewriters...)

make is a plugin here: http://tobibeer.github.io/tw5-plugins/#make

it does return in a funny format (italicised link in wikiview)

Thanks all for your ongoing help to this newbie. 

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/cbc03495-7c19-4246-a0d8-4df8e5c794fd%40googlegroups.com.