Oh, this actually makes an infinite loop, and my page blocks.... 在 2019年5月7日星期二 UTC+8下午12:39:22,Mark S.写道: > > You would need to wrap it in a tiddler, and then use that tiddler for > transclusion. > > So maybe (untested) > > Tiddler: MyTemplate > Text: <$macrocall $name=listtosentence text={{!!text}}/> > > Then call the transclusion like: > > {{SomeListTiddler||MyTemplate}} > > Notice that it uses {{!!text}} to pick up the text of the tiddler to which > the template is applied. > > Good luck! > > On Monday, May 6, 2019 at 3:31:30 AM UTC-7, LinOnetwo wrote: >> >> I can't write wikitext or this forum will throw error on console...So: >> >> >> >> 在 2019年5月6日星期一 UTC+8下午6:29:37,LinOnetwo写道: >>> >>> (function() { >>> exports.name = 'listtosentence'; >>> >>> exports.params = [{ name: 'text', defalue: '' }]; >>> >>> exports.run = function(text) { >>> return text >>> .split(/\s?\*\s/) >>> .filter(it => it) >>> .join('、'); >>> }; >>> })(); >>> >>> I've writen this macro >>> >>
-- 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 post to this group, send email to tiddlywiki@googlegroups.com. 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/e3886908-854c-4c69-a7d8-c02d2185419b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.