[tw5] Re: How to get simple i=i+2 in wiki macros?

2021-11-29 Thread Eric Shulman


Use this calculation: `<$text text={{{ 
[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 
> 1Learning
> 1 Working with TiddlyWiki 
>
> 2 Customise 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={{{ [multiply[2]]}}}/> <>  
>> 
>>
>>
>>
>> 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={{{[add[2]]}}}> <> <>  *
>>> **
>>> **
>>>  
>>> and I see this
>>>
>>> 2 HelloThere 
>>> 2 Learning
>>> 2 Working with TiddlyWiki 
>>> 2 Customise 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 
>>> 4 Learning
>>> 6 Working with TiddlyWiki 
>>> 8 Customise 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.


[tw5] Re: How to get simple i=i+2 in wiki macros?

2021-11-28 Thread Siniy-Kit
Thank you Cj. And how can we get this list?
1 HelloThere 
1Learning
1 Working with TiddlyWiki 
2 Customise 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={{{ [multiply[2]]}}}/> <>  
> 
>
>
>
> 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={{{[add[2]]}}}> <> <>  *
>> **
>> **
>>  
>> and I see this
>>
>> 2 HelloThere 
>> 2 Learning
>> 2 Working with TiddlyWiki 
>> 2 Customise 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 
>> 4 Learning
>> 6 Working with TiddlyWiki 
>> 8 Customise 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/aac13d3b-0b5d-4f4d-8923-0dae0ce2141fn%40googlegroups.com.


[tw5] Re: How to get simple i=i+2 in wiki macros?

2021-11-28 Thread Charlie Veniot
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={{{ [multiply[2]]}}}/> <>  




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={{{[add[2]]}}}> <> <>  *
> **
> **
>  
> and I see this
>
> 2 HelloThere 
> 2 Learning
> 2 Working with TiddlyWiki 
> 2 Customise 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 
> 4 Learning
> 6 Working with TiddlyWiki 
> 8 Customise 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/8ac1ed92-f5b8-4a32-a0e6-6a982435bb77n%40googlegroups.com.