Below are three different ways to do this using reduce and without wikify. 
The last one uses a custom filter printf[] that is attached.
Note that you can use a tiddler for your template as well.

*#1 - addprefix galore*

<$button> save to a single tiddler 
<$vars lb="
"> 
<$action-setfield $tiddler="report" text={{{ [tag[About]] 
:reduce[get[text]addprefix<lb>addprefix<lb>addprefix{!!title}addprefix[!!]addprefix<lb>addprefix<accumulator>]
 
}}}/> 
</$vars> 
</$button>

*#2 - search-replace*

<$button> save to a single tiddler 
<$vars template="
!! _TITLE_

_TEXT_
"> 
<$action-setfield $tiddler="report" text={{{ [tag[About]] 
:reduce[<template>search-replace:gi[_TITLE_],{!!title}search-replace[_TEXT_],{!!text}addprefix<accumulator>]
 
}}}/> 
</$vars> 
</$button>

*#3 - printf[]*

<$button> save to a single tiddler 
<$vars template="
!! $0$

$1$
"> 
<$action-setfield $tiddler="report" text={{{ [tag[About]] 
:reduce[<template>printf{!!title},{!!text}addprefix<accumulator>] }}}/> 
</$vars> 
</$button>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/dd5d5a24-44ab-4c7a-8934-fc2cc1a79771n%40googlegroups.com.

Attachment: $__plugins_sq_filters_filters_printf.js.json
Description: application/json

Reply via email to