Use this calculation: `<$text text={{{ [<a>subtract[1]divide[3]trunc[]add[1]] }}}/>`
enjoy, -e On Sunday, November 28, 2021 at 11:26:32 PM UTC-8 Siniy-Kit wrote: > Thank you Cj. And how can we get this list? > 1 HelloThere <https://tiddlywiki.com/#HelloThere> > 1Learning > 1 Working with TiddlyWiki <https://tiddlywiki.com/#TiddlyWiki> > > 2 Customise TiddlyWiki <https://tiddlywiki.com/#TiddlyWiki> > 2 Features > 2 Languages > 3 Editions > 3 Plugins > 3 Platforms > 4 Reference > 4 Community > 4 About > > > > > воскресенье, 28 ноября 2021 г. в 21:25:00 UTC+3, cj.v...@gmail.com: > >> Hi, >> >> It looks like you are treating TiddlyWiki and widgets like a programming >> language, trying to do iteration in each loop. That doesn't work. >> >> Take a look at the "counter" attribute in list widget. That is a >> relatively new feature to help handle what you are doing. >> >> To get the desired output: >> >> <$list filter="[tag[TableOfContents]]" counter="a"> >> <$text text={{{ [<a>multiply[2]]}}}/> <<currentTiddler>> <br/> >> </$list> >> >> >> >> On Sunday, November 28, 2021 at 1:58:53 PM UTC-4 Siniy-Kit wrote: >> >>> Hi! I write a simple macros on https://tiddlywiki.com/ >>> >>> *<$vars a=0>* >>> *<$list filter="[tag[TableOfContents]]">* >>> *<$vars a={{{[<a>add[2]]}}}> <<a>></$vars> <<currentTiddler>> <br/> * >>> *</$list>* >>> *</$vars>* >>> >>> and I see this >>> >>> 2 HelloThere <https://tiddlywiki.com/#HelloThere> >>> 2 Learning >>> 2 Working with TiddlyWiki <https://tiddlywiki.com/#TiddlyWiki> >>> 2 Customise TiddlyWiki <https://tiddlywiki.com/#TiddlyWiki> >>> 2 Features >>> 2 Languages >>> 2 Editions >>> 2 Plugins >>> 2 Platforms >>> 2 Reference >>> 2 Community >>> 2 About >>> >>> but I want to see this >>> >>> 2 HelloThere <https://tiddlywiki.com/#HelloThere> >>> 4 Learning >>> 6 Working with TiddlyWiki <https://tiddlywiki.com/#TiddlyWiki> >>> 8 Customise TiddlyWiki <https://tiddlywiki.com/#TiddlyWiki> >>> 10 Features >>> 12 Languages >>> 14 Editions >>> 16 Plugins >>> 18 Platforms >>> 20 Reference >>> 22 Community >>> 24 About >>> >>> where is my mistake? >>> >> -- 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/cc329ab7-ed50-4dcd-a67a-ceb988b189f7n%40googlegroups.com.