Re: [tw5] Re: Use Talk Tiddlywiki instead of Google Forum

2021-08-30 Thread TiddlyTweeter
Ciao Mohammad

A PROBLEM with the short form for our Discourse group 
(https://talk.tiddlywiki.org) is it make it "TT".

*BUT I'm TT ! (@TiddlyTweeter) :-). *

I'm  Reviewing The Situation  
with my on-line name for Discourse. :-)

Best wishes
TT

On Tuesday, 31 August 2021 at 06:37:25 UTC+2 Mohammad wrote:

> One nice feature of TT (https://talk.tiddlywiki.org) is it has syntax 
> highlighting and it knows code blocks!
> I can simply copy codes bysing the handy button top right of code block 
> and paste in my Tiddlywiki!
>
> For example see 
> https://talk.tiddlywiki.org/t/tw5-list-sort-by-count-field-operator/366/7
>
> Thank you TT! You made life easier!
>
> Best wishes
> Mohammad
>
>
> On Sat, Aug 28, 2021 at 8:31 PM Mohammad  wrote:
>
>> More features
>>
>> *https://talk.tiddlywiki.org/ *
>>
>> 1. is much more readable on my mobile phone than GG
>> 2. is more mobile friendly in terms of layout
>> 3. allows me to reply privately to author
>> 4. allow me to create a wiki (means a page, multiple users can edit it)
>> 5. when I type the new post subjects warns me of similar questions
>> 6. display the summary of page if I put a link
>>
>> talk.tiddlywiki.org makes life easier!  
>>
>> On Thursday, August 19, 2021 at 3:04:08 PM UTC+4:30 Mohammad wrote:
>>
>>> *Why should we use Talk Tiddlywiki (https://talk.tiddlywiki.org/ 
>>> ) instead of Google Forum?*
>>>
>>>
>>>1. it mirrors all posts from Google Forum, so you will be notified 
>>>what is going on Google Forum
>>>2. it allows previewing your post before sending
>>>3. it allows editing your post after it was sent! (this is very good 
>>>feature I frequently need)
>>>4. it supports pinig other users
>>>5. it support code block
>>>6. it supports nice sharing features e.g share to Twitter
>>>
>>>
>>> Please complete this list with features I missed!
>>>
>>>
>>> Best wishes
>>> Mohammad
>>>
>> -- 
>>
> 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+...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/c0cec418-7062-427b-b0e3-dbd0be1efa3bn%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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/c053fbab-7861-4cfb-9949-ff408abcfb43n%40googlegroups.com.


Re: [tw5] Re: List sort by count field operator

2021-08-30 Thread Mohammad Rahmani
A Gloom

The code works with data provided by Jim and it also sorts!
To give a try download data of Jim post above and drag and drop to
tiddlywiki.com
Next in a new tiddler paste the code of my last post you will see

[image: image.png]



Best wishes
Mohammad


On Tue, Aug 31, 2021 at 7:55 AM A Gloom  wrote:

> Soren, sorry about the delay-- this something low on my list of too many
> things to do, so I haven't been dedicating enough time to it.  Let me
> export some shell tiddlers with the fields and values from the real world
> attempt at this issue.
>
> Mohammad, good to see you responding as well.  I tried your solution, it
> displayed the field values with counts but didn't sort them by the counts
> (count of fields with each value).  Playing with things-- I inserted a
> <> in the list so that each list result (see [1] beow) would show
> the criteria variable for each.  It's displaying: [tag[zz@]zztopiccount[]]
> **(note the " zztopiccount ", zztopic being the field name)
> It appears that it's not applying  from the criteria $vars
> widget.  The entire code (yours altered to work with my tiddlers selection)
> I used is below [2].  It displays what is expect but not sorting.
>
> [1]
> <$link/> (<$count filter="[tag[zz@AYoS]ayostopic]"/>)
> ::: <>
>
> [2]
> <$vars criteria="[tag[zz@]zztopiccount[]]">
> 
> <$list filter="[tag[zz@]each[zztopic]get[zztopic]]
> +[!sortsub:integer]">
> <$link/> (<$count filter="[tag[zz@]zztopic]"/>) :::
> <>
> 
> 
> 
>
>
> On Monday, August 30, 2021 at 5:20:19 PM UTC-4 amreus wrote:
>
>> Mohammad.
>>
>> That is brilliant!
>>
>> I made many attempts at a filter but never was able to get it.  The
>> missing piece for me is the currentTiddler in the criteria variable.  In
>> the context of the list, currentTiddler is the surname.  It makes sense
>> after I see it.  This indicates I am still not understanding macros and
>> variables correctly.
>>
>> Thanks again!
>>
>>
>> On Monday, August 30, 2021 at 4:29:58 PM UTC-4 Mohammad wrote:
>>
>>> Ah, sorry I did not notice a sorted output was requested! This is the
>>> final solution with sort capability!
>>>
>>> ```
>>> 
>>> <$vars criteria="[all[tiddlers]surnamecount[]]">
>>> <$list filter="[all[tiddlers]!is[system]each[surname]get[surname]]
>>> +[!sortsub:number]">
>>>
>>> <$link/>(<$count
>>> filter="[all[tiddlers]surname]"/>)
>>> 
>>> 
>>> 
>>> ```
>>> Note, this works in TW 5.1.23+
>>>
>>>
>>>
>>> Best wishes
>>> Mohammad
>>>
>>>
>>> On Mon, Aug 30, 2021 at 11:58 PM amreus  wrote:
>>>
 Thank you Mohammad,

 I have learned much from your wikis on github.

 However, in your enthusiasm I think you over-looked the desire to sort
 the names by count.

 I thought I saw an old post that showed a possible way by using an
 intermediate list, prefixing the count to the title with a delimiter,
 sorting the list, and finally splitting the count from the title - but I am
 unable to find it using search, and also do not recall if the method could
 be applied in this case.


 On Monday, August 30, 2021 at 11:28:26 AM UTC-4 Mohammad wrote:

> Jim,
> Give a try with this script!
>
> 
> <$list filter="[all[tiddlers]!is[system]each[surname]get[surname]]">
> <$link/>(<$count
> filter="[all[tiddlers]surname]"/>)
> 
> 
> You can also replace <$link/>  with <$text text=<>/>
>
>
> Best wishes
> Mohammad
>
>
> On Sun, Aug 29, 2021 at 6:15 PM Jim  wrote:
>
>> Not OP but in my case, I'd like to generate a list of surnames sorted
>> by how many tiddlers share the same surname field.
>>
>> Output should look similar to this:
>>
>>
>>- Took (26)
>>- Brandybuck (24)
>>- Baggins (24)
>>- Bolger (22)
>>- Boffin (18)
>>- Gardner (14)
>>- Gamgee (7)
>>- Burrows (7)
>>
>>
>> On Sunday, August 29, 2021 at 9:10:08 AM UTC-4 Soren Bjornstad wrote:
>>
>>> Can you maybe upload a small wiki with some tiddlers that could
>>> serve as an example? It's pretty difficult to go into more depth without
>>> any data to try it on.

 teric wikiery would be greatly appreciated...
>>
> --
>> 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+...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/tiddlywiki/4feea918-07db-46d9-9489-a23cea65658dn%40googlegroups.com
>> 
>> .
>>
> --
 You received this message because you are subscribed to the Google
 Groups "TiddlyWiki" group.
 To unsubscribe from this group and stop receiving 

Re: [tw5] Re: Use Talk Tiddlywiki instead of Google Forum

2021-08-30 Thread Mohammad Rahmani
One nice feature of TT (https://talk.tiddlywiki.org) is it has syntax
highlighting and it knows code blocks!
I can simply copy codes bysing the handy button top right of code block and
paste in my Tiddlywiki!

For example see
https://talk.tiddlywiki.org/t/tw5-list-sort-by-count-field-operator/366/7

Thank you TT! You made life easier!

Best wishes
Mohammad


On Sat, Aug 28, 2021 at 8:31 PM Mohammad  wrote:

> More features
>
> *https://talk.tiddlywiki.org/ *
>
> 1. is much more readable on my mobile phone than GG
> 2. is more mobile friendly in terms of layout
> 3. allows me to reply privately to author
> 4. allow me to create a wiki (means a page, multiple users can edit it)
> 5. when I type the new post subjects warns me of similar questions
> 6. display the summary of page if I put a link
>
> talk.tiddlywiki.org makes life easier!
>
> On Thursday, August 19, 2021 at 3:04:08 PM UTC+4:30 Mohammad wrote:
>
>> *Why should we use Talk Tiddlywiki (https://talk.tiddlywiki.org/
>> ) instead of Google Forum?*
>>
>>
>>1. it mirrors all posts from Google Forum, so you will be notified
>>what is going on Google Forum
>>2. it allows previewing your post before sending
>>3. it allows editing your post after it was sent! (this is very good
>>feature I frequently need)
>>4. it supports pinig other users
>>5. it support code block
>>6. it supports nice sharing features e.g share to Twitter
>>
>>
>> Please complete this list with features I missed!
>>
>>
>> Best wishes
>> Mohammad
>>
> --
> 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/c0cec418-7062-427b-b0e3-dbd0be1efa3bn%40googlegroups.com
> 
> .
>

-- 
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/CAAV1gMC%3DvYJoryx4wXN54Eaqm87EwB-1VUQWxAcNUH_kpwBJ_w%40mail.gmail.com.


[tw5] Re: Highlighting duplicates in lists

2021-08-30 Thread TW Tones
Mohamad,

Sorry, I did not mean to imply you were not putting in the effort, more 
that you needed to direct it elsewhere first.

Although it is great to see you are keen and jumping into it, it can just 
make it a little hard to support you. Don't be shy to keep asking, but 
trust in your ability to learn yourself as well.

Tones

On Tuesday, 31 August 2021 at 07:42:21 UTC+10 mohamed...@hotmail.com wrote:

> Thanks tones 
>
> actually my problem is not lack of effort but  rather lack of knowledge  
> :( , i try many different things before coming back, its just like you said 
> i am guilty of trying to plug in the code rather than fully understanding it
>
> well then ..i guess its time for me to up my game with the filter syntax 
> first  before attempting anything else
>
> i guess for now the thread can be closed, but thanks again for you help :)
>
>
>
> On Monday, August 30, 2021 at 2:25:28 AM UTC+2 TW Tones wrote:
>
>> Mohamad,
>>
>> Part of the issue here is you have not yet learned the basic syntax of 
>> tiddlywiki yet, we all start somewhere, my instructions should have being 
>> self evident if you had just rudimentary tiddlywiki syntax, all of which I 
>> learned from TiddlyWiki.com 
>>
>> I did answer this latest question here 
>>  and 
>> you can put *{{{ [all[current]get[date-field]format:date[]] }}} *where 
>> you read *this is displayed inside the list*
>>
>> I am happy still to help, but you force me to revisit the whole thread 
>> again. I am not sure that when I gave previous answers, you tried to 
>> understand what I shared with you, it seems more like you just tried to 
>> "plugin my answers" to your code without trying to work it out. I may be 
>> wrong but please try a little harder to work through the carefully 
>> considered answers you get.
>>
>> Tones
>>
>> On Sunday, 29 August 2021 at 12:38:56 UTC+10 mohamed...@hotmail.com 
>> wrote:
>>
>>> thanks tones,
>>>
>>> back one step , the original code was ..
>>>
>>>   matchthen[color: 
>>> red;]] }}}><>
>>> 
>>>
>>> 
>>> 
>>> the modified code is as follows 
>>>
>>> >> [all[]prefix[New]!titleget[field]match*{!!field}*then[color:
>>>  
>>> red;]] }}}>* this is displayed inside the list* 
>>>
>>> the instruction is to replace 
>>>  *{{!!field}} *
>>> With *{{{ [all[current]get[field]format:date[]] }}}*
>>>
>>> *(change "field" to your date field)*
>>>
>>> making the code
>>>
>>> >> [all[]prefix[New]!titleget[field]match *{{{ 
>>> [all[current]get[field_example]format:date[]] }}} *then[color: red;]] 
>>> }}}> this is displayed inside the list 
>>>
>>> this does not work, prob because i have misinterpreted your instructions
>>>
>>> also there are several things missed out in the modified code , the 
>>> enlist operator, the   variable, is this intentional?
>>>
>>> if the date field is "field_example"  , can you please tell me what the 
>>> full line of code would be ..  
>>>
>>> thanks again
>>> On Saturday, August 28, 2021 at 1:44:23 AM UTC+2 TW Tones wrote:
>>>
 The information you are after is in my earlier post
 *<> {{!!field}} *is the display replace this with *{{{ 
 [all[current]get[field]format:date[]] }}}*

 It is what is inside the span that gets coloured using style attribute, 
 thus what is inside the span is what is displayed,

 >>> [all[]prefix[New]!titleget[field]match{!!field}then[color: 
 red;]] }}}>* this is displayed inside the list*

 So basically we replace the display of  *{{!!field}} *
 With *{{{ [all[current]get[field]format:date[]] }}}*
 (change "field" to your date field)

 So the following will be inside the span because you want the title and 
 its date.
 *<> **{{{ [all[current]get[field]format:date[]] }}}*

 The format operator requires tiddlywiki 5.1.23 or greater

 Tones
 On Saturday, 28 August 2021 at 02:13:48 UTC+10 mohamed...@hotmail.com 
 wrote:

> Hi tones,
>
> have you had the chance to look at my last post?
>
> On Saturday, August 21, 2021 at 5:14:38 AM UTC+2 paulgilbert2000 wrote:
>
>> Hi Tones,
>>
>> I am not sure which line of code you are referring too , the line 
>> that does the coloring is 
>> <$list filter="[all[current]get[field_example]] 
>> [all[current]get[field_example2]] [all[current]get[field_example3]]" 
>> variable=field-value>
>> > [enlistmatchthen[color: 
>> red;]] }}}><>
>>
>> It does not have <> {{!!field}} 
>>
>> instead there is  <>  ,so is this the bit that should 
>> be replaced *?*
>>
>> i tried this  with no luck..
>>
>>
>> *[image: Capture.PNG]*
>> On Monday, August 16, 2021 at 6:29:52 AM UTC+2 TW Tones wrote:
>>
>>> Hio,
>>>
>>> Back in my code
>>> 
>>> <$list filter="[all[]prefix[New]has[field]]">
>>>>> 

Re: [tw5] Re: List sort by count field operator

2021-08-30 Thread A Gloom
Soren, sorry about the delay-- this something low on my list of too many 
things to do, so I haven't been dedicating enough time to it.  Let me 
export some shell tiddlers with the fields and values from the real world 
attempt at this issue.

Mohammad, good to see you responding as well.  I tried your solution, it 
displayed the field values with counts but didn't sort them by the counts 
(count of fields with each value).  Playing with things-- I inserted a 
<> in the list so that each list result (see [1] beow) would show 
the criteria variable for each.  It's displaying: [tag[zz@]zztopiccount[]]  
**(note the " zztopiccount ", zztopic being the field name)
It appears that it's not applying  from the criteria $vars 
widget.  The entire code (yours altered to work with my tiddlers selection) 
I used is below [2].  It displays what is expect but not sorting.

[1]
<$link/> (<$count filter="[tag[zz@AYoS]ayostopic]"/>) 
::: <>

[2]
<$vars criteria="[tag[zz@]zztopiccount[]]">

<$list filter="[tag[zz@]each[zztopic]get[zztopic]] 
+[!sortsub:integer]">
<$link/> (<$count filter="[tag[zz@]zztopic]"/>) ::: 
<>





On Monday, August 30, 2021 at 5:20:19 PM UTC-4 amreus wrote:

> Mohammad.
>
> That is brilliant!
>
> I made many attempts at a filter but never was able to get it.  The 
> missing piece for me is the currentTiddler in the criteria variable.  In 
> the context of the list, currentTiddler is the surname.  It makes sense 
> after I see it.  This indicates I am still not understanding macros and 
> variables correctly.
>
> Thanks again!
>
>
> On Monday, August 30, 2021 at 4:29:58 PM UTC-4 Mohammad wrote:
>
>> Ah, sorry I did not notice a sorted output was requested! This is the 
>> final solution with sort capability!
>>
>> ```
>> 
>> <$vars criteria="[all[tiddlers]surnamecount[]]">
>> <$list filter="[all[tiddlers]!is[system]each[surname]get[surname]] 
>> +[!sortsub:number]">
>>
>> <$link/>(<$count 
>> filter="[all[tiddlers]surname]"/>)
>> 
>> 
>> 
>> ```
>> Note, this works in TW 5.1.23+
>>
>>
>>
>> Best wishes
>> Mohammad
>>
>>
>> On Mon, Aug 30, 2021 at 11:58 PM amreus  wrote:
>>
>>> Thank you Mohammad,
>>>
>>> I have learned much from your wikis on github.
>>>
>>> However, in your enthusiasm I think you over-looked the desire to sort 
>>> the names by count.  
>>>
>>> I thought I saw an old post that showed a possible way by using an 
>>> intermediate list, prefixing the count to the title with a delimiter, 
>>> sorting the list, and finally splitting the count from the title - but I am 
>>> unable to find it using search, and also do not recall if the method could 
>>> be applied in this case.
>>>
>>>
>>> On Monday, August 30, 2021 at 11:28:26 AM UTC-4 Mohammad wrote:
>>>
 Jim,
 Give a try with this script!

 
 <$list filter="[all[tiddlers]!is[system]each[surname]get[surname]]"> 
 <$link/>(<$count 
 filter="[all[tiddlers]surname]"/>)
 
 
 You can also replace <$link/>  with <$text text=<>/>


 Best wishes
 Mohammad


 On Sun, Aug 29, 2021 at 6:15 PM Jim  wrote:

> Not OP but in my case, I'd like to generate a list of surnames sorted 
> by how many tiddlers share the same surname field.
>
> Output should look similar to this:
>
>
>- Took (26)
>- Brandybuck (24)
>- Baggins (24)
>- Bolger (22)
>- Boffin (18)
>- Gardner (14)
>- Gamgee (7)
>- Burrows (7)
>
>
> On Sunday, August 29, 2021 at 9:10:08 AM UTC-4 Soren Bjornstad wrote:
>
>> Can you maybe upload a small wiki with some tiddlers that could serve 
>> as an example? It's pretty difficult to go into more depth without any 
>> data 
>> to try it on.
>>>
>>> teric wikiery would be greatly appreciated...
>
 -- 
> 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+...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/4feea918-07db-46d9-9489-a23cea65658dn%40googlegroups.com
>  
> 
> .
>
 -- 
>>> 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+...@googlegroups.com.
>>>
>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/tiddlywiki/d9293190-4bca-46ef-923a-d0ce0a8b0270n%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>>

-- 
You received this message because you are 

[tw5] Re: Highlighting duplicates in lists

2021-08-30 Thread paulgilbert2000
Thanks tones 

actually my problem is not lack of effort but  rather lack of knowledge  :( 
, i try many different things before coming back, its just like you said i 
am guilty of trying to plug in the code rather than fully understanding it

well then ..i guess its time for me to up my game with the filter syntax 
first  before attempting anything else

i guess for now the thread can be closed, but thanks again for you help :)



On Monday, August 30, 2021 at 2:25:28 AM UTC+2 TW Tones wrote:

> Mohamad,
>
> Part of the issue here is you have not yet learned the basic syntax of 
> tiddlywiki yet, we all start somewhere, my instructions should have being 
> self evident if you had just rudimentary tiddlywiki syntax, all of which I 
> learned from TiddlyWiki.com 
>
> I did answer this latest question here 
>  and 
> you can put *{{{ [all[current]get[date-field]format:date[]] }}} *where 
> you read *this is displayed inside the list*
>
> I am happy still to help, but you force me to revisit the whole thread 
> again. I am not sure that when I gave previous answers, you tried to 
> understand what I shared with you, it seems more like you just tried to 
> "plugin my answers" to your code without trying to work it out. I may be 
> wrong but please try a little harder to work through the carefully 
> considered answers you get.
>
> Tones
>
> On Sunday, 29 August 2021 at 12:38:56 UTC+10 mohamed...@hotmail.com wrote:
>
>> thanks tones,
>>
>> back one step , the original code was ..
>>
>>   matchthen[color: 
>> red;]] }}}><>
>> 
>>
>> 
>> 
>> the modified code is as follows 
>>
>> get[field]match
>> *{!!field}*then[color: red;]] }}}>* this is displayed inside the 
>> list* 
>>
>>
>> the instruction is to replace 
>>  *{{!!field}} *
>> With *{{{ [all[current]get[field]format:date[]] }}}*
>>
>> *(change "field" to your date field)*
>>
>> making the code
>>
>> get[field]match 
>> *{{{ 
>> [all[current]get[field_example]format:date[]] }}} *then[color: red;]] 
>> }}}> this is displayed inside the list 
>>
>> this does not work, prob because i have misinterpreted your instructions
>>
>> also there are several things missed out in the modified code , the 
>> enlist operator, the   variable, is this intentional?
>>
>> if the date field is "field_example"  , can you please tell me what the 
>> full line of code would be ..  
>>
>> thanks again
>> On Saturday, August 28, 2021 at 1:44:23 AM UTC+2 TW Tones wrote:
>>
>>> The information you are after is in my earlier post
>>> *<> {{!!field}} *is the display replace this with *{{{ 
>>> [all[current]get[field]format:date[]] }}}*
>>>
>>> It is what is inside the span that gets coloured using style attribute, 
>>> thus what is inside the span is what is displayed,
>>>
>>> >> [all[]prefix[New]!titleget[field]match{!!field}then[color: 
>>> red;]] }}}>* this is displayed inside the list*
>>>
>>> So basically we replace the display of  *{{!!field}} *
>>> With *{{{ [all[current]get[field]format:date[]] }}}*
>>> (change "field" to your date field)
>>>
>>> So the following will be inside the span because you want the title and 
>>> its date.
>>> *<> **{{{ [all[current]get[field]format:date[]] }}}*
>>>
>>> The format operator requires tiddlywiki 5.1.23 or greater
>>>
>>> Tones
>>> On Saturday, 28 August 2021 at 02:13:48 UTC+10 mohamed...@hotmail.com 
>>> wrote:
>>>
 Hi tones,

 have you had the chance to look at my last post?

 On Saturday, August 21, 2021 at 5:14:38 AM UTC+2 paulgilbert2000 wrote:

> Hi Tones,
>
> I am not sure which line of code you are referring too , the line that 
> does the coloring is 
> <$list filter="[all[current]get[field_example]] 
> [all[current]get[field_example2]] [all[current]get[field_example3]]" 
> variable=field-value>
>  [enlistmatchthen[color: 
> red;]] }}}><>
>
> It does not have <> {{!!field}} 
>
> instead there is  <>  ,so is this the bit that should be 
> replaced *?*
>
> i tried this  with no luck..
>
>
> *[image: Capture.PNG]*
> On Monday, August 16, 2021 at 6:29:52 AM UTC+2 TW Tones wrote:
>
>> Hio,
>>
>> Back in my code
>> 
>> <$list filter="[all[]prefix[New]has[field]]">
>>> [all[]prefix[New]!titleget[field]match{!!field}then[color:
>>  
>> red;]] }}}>* <> {{!!field}}*
>> 
>> 
>>
>>
>> *<> {{!!field}} *is the display
>> replace this with 
>> *{{{ [all[current]get[field]format:date[]] }}}*
>> Not tested by me on this occasion
>>
>> where field is the chosen fieldname.
>>
>> Regards
>> Tones
>>
>> On Monday, 16 August 2021 at 12:14:51 UTC+10 mohamed...@hotmail.com 
>> wrote:
>>
>>> Thank you tones
>>>
>>> The real life example is to evaluate duplicate dates, so the actual 
>>> real values populating the fields are not  1 ,2 , 

Re: [tw5] Re: List sort by count field operator

2021-08-30 Thread amreus
Mohammad.

That is brilliant!

I made many attempts at a filter but never was able to get it.  The missing 
piece for me is the currentTiddler in the criteria variable.  In the 
context of the list, currentTiddler is the surname.  It makes sense after I 
see it.  This indicates I am still not understanding macros and variables 
correctly.

Thanks again!


On Monday, August 30, 2021 at 4:29:58 PM UTC-4 Mohammad wrote:

> Ah, sorry I did not notice a sorted output was requested! This is the 
> final solution with sort capability!
>
> ```
> 
> <$vars criteria="[all[tiddlers]surnamecount[]]">
> <$list filter="[all[tiddlers]!is[system]each[surname]get[surname]] 
> +[!sortsub:number]">
>
> <$link/>(<$count 
> filter="[all[tiddlers]surname]"/>)
> 
> 
> 
> ```
> Note, this works in TW 5.1.23+
>
>
>
> Best wishes
> Mohammad
>
>
> On Mon, Aug 30, 2021 at 11:58 PM amreus  wrote:
>
>> Thank you Mohammad,
>>
>> I have learned much from your wikis on github.
>>
>> However, in your enthusiasm I think you over-looked the desire to sort 
>> the names by count.  
>>
>> I thought I saw an old post that showed a possible way by using an 
>> intermediate list, prefixing the count to the title with a delimiter, 
>> sorting the list, and finally splitting the count from the title - but I am 
>> unable to find it using search, and also do not recall if the method could 
>> be applied in this case.
>>
>>
>> On Monday, August 30, 2021 at 11:28:26 AM UTC-4 Mohammad wrote:
>>
>>> Jim,
>>> Give a try with this script!
>>>
>>> 
>>> <$list filter="[all[tiddlers]!is[system]each[surname]get[surname]]"> 
>>> <$link/>(<$count 
>>> filter="[all[tiddlers]surname]"/>)
>>> 
>>> 
>>> You can also replace <$link/>  with <$text text=<>/>
>>>
>>>
>>> Best wishes
>>> Mohammad
>>>
>>>
>>> On Sun, Aug 29, 2021 at 6:15 PM Jim  wrote:
>>>
 Not OP but in my case, I'd like to generate a list of surnames sorted 
 by how many tiddlers share the same surname field.

 Output should look similar to this:


- Took (26)
- Brandybuck (24)
- Baggins (24)
- Bolger (22)
- Boffin (18)
- Gardner (14)
- Gamgee (7)
- Burrows (7)


 On Sunday, August 29, 2021 at 9:10:08 AM UTC-4 Soren Bjornstad wrote:

> Can you maybe upload a small wiki with some tiddlers that could serve 
> as an example? It's pretty difficult to go into more depth without any 
> data 
> to try it on.
>>
>> teric wikiery would be greatly appreciated...

>>> -- 
 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+...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/tiddlywiki/4feea918-07db-46d9-9489-a23cea65658dn%40googlegroups.com
  
 
 .

>>> -- 
>> 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+...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/d9293190-4bca-46ef-923a-d0ce0a8b0270n%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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/6bf6631c-5125-4e2d-af58-8909b4eeb9e8n%40googlegroups.com.


Re: [tw5] Re: List sort by count field operator

2021-08-30 Thread Mohammad Rahmani
On Mon, Aug 30, 2021 at 11:58 PM amreus  wrote:

> Thank you Mohammad,
>
> I have learned much from your wikis on github.
>

Glad they are useful ;-)

>
> However, in your enthusiasm I think you over-looked the desire to sort the
> names by count.
>
> I thought I saw an old post that showed a possible way by using an
> intermediate list, prefixing the count to the title with a delimiter,
> sorting the list, and finally splitting the count from the title - but I am
> unable to find it using search, and also do not recall if the method could
> be applied in this case.
>

in TW 5.1.23+ life is much easier! no need to go through that length
process! Now you can use the wonderful sortsub!



>
>
> On Monday, August 30, 2021 at 11:28:26 AM UTC-4 Mohammad wrote:
>
>> Jim,
>> Give a try with this script!
>>
>> 
>> <$list filter="[all[tiddlers]!is[system]each[surname]get[surname]]">
>> <$link/>(<$count
>> filter="[all[tiddlers]surname]"/>)
>> 
>> 
>> You can also replace <$link/>  with <$text text=<>/>
>>
>>
>> Best wishes
>> Mohammad
>>
>>
>> On Sun, Aug 29, 2021 at 6:15 PM Jim  wrote:
>>
>>> Not OP but in my case, I'd like to generate a list of surnames sorted by
>>> how many tiddlers share the same surname field.
>>>
>>> Output should look similar to this:
>>>
>>>
>>>- Took (26)
>>>- Brandybuck (24)
>>>- Baggins (24)
>>>- Bolger (22)
>>>- Boffin (18)
>>>- Gardner (14)
>>>- Gamgee (7)
>>>- Burrows (7)
>>>
>>>
>>> On Sunday, August 29, 2021 at 9:10:08 AM UTC-4 Soren Bjornstad wrote:
>>>
 Can you maybe upload a small wiki with some tiddlers that could serve
 as an example? It's pretty difficult to go into more depth without any data
 to try it on.
>
> teric wikiery would be greatly appreciated...
>>>
>> --
>>> 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+...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/tiddlywiki/4feea918-07db-46d9-9489-a23cea65658dn%40googlegroups.com
>>> 
>>> .
>>>
>> --
> 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/d9293190-4bca-46ef-923a-d0ce0a8b0270n%40googlegroups.com
> 
> .
>

-- 
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/CAAV1gMDLNJvgXquBMeEDbKvW5KSdVzC3VzhFbMBSU_yXzY9t%2Bw%40mail.gmail.com.


Re: [tw5] Re: List sort by count field operator

2021-08-30 Thread Mohammad Rahmani
Ah, sorry I did not notice a sorted output was requested! This is the final
solution with sort capability!

```

<$vars criteria="[all[tiddlers]surnamecount[]]">
<$list filter="[all[tiddlers]!is[system]each[surname]get[surname]]
+[!sortsub:number]">
<$link/>(<$count filter="[all[tiddlers]surname]"/>)



```
Note, this works in TW 5.1.23+



Best wishes
Mohammad


On Mon, Aug 30, 2021 at 11:58 PM amreus  wrote:

> Thank you Mohammad,
>
> I have learned much from your wikis on github.
>
> However, in your enthusiasm I think you over-looked the desire to sort the
> names by count.
>
> I thought I saw an old post that showed a possible way by using an
> intermediate list, prefixing the count to the title with a delimiter,
> sorting the list, and finally splitting the count from the title - but I am
> unable to find it using search, and also do not recall if the method could
> be applied in this case.
>
>
> On Monday, August 30, 2021 at 11:28:26 AM UTC-4 Mohammad wrote:
>
>> Jim,
>> Give a try with this script!
>>
>> 
>> <$list filter="[all[tiddlers]!is[system]each[surname]get[surname]]">
>> <$link/>(<$count
>> filter="[all[tiddlers]surname]"/>)
>> 
>> 
>> You can also replace <$link/>  with <$text text=<>/>
>>
>>
>> Best wishes
>> Mohammad
>>
>>
>> On Sun, Aug 29, 2021 at 6:15 PM Jim  wrote:
>>
>>> Not OP but in my case, I'd like to generate a list of surnames sorted by
>>> how many tiddlers share the same surname field.
>>>
>>> Output should look similar to this:
>>>
>>>
>>>- Took (26)
>>>- Brandybuck (24)
>>>- Baggins (24)
>>>- Bolger (22)
>>>- Boffin (18)
>>>- Gardner (14)
>>>- Gamgee (7)
>>>- Burrows (7)
>>>
>>>
>>> On Sunday, August 29, 2021 at 9:10:08 AM UTC-4 Soren Bjornstad wrote:
>>>
 Can you maybe upload a small wiki with some tiddlers that could serve
 as an example? It's pretty difficult to go into more depth without any data
 to try it on.
>
> teric wikiery would be greatly appreciated...
>>>
>> --
>>> 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+...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/tiddlywiki/4feea918-07db-46d9-9489-a23cea65658dn%40googlegroups.com
>>> 
>>> .
>>>
>> --
> 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/d9293190-4bca-46ef-923a-d0ce0a8b0270n%40googlegroups.com
> 
> .
>

-- 
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/CAAV1gMAKqfT%2Bi5UUpCatR79pGFJWyZVfMVhmHbG-M8DtUygt5w%40mail.gmail.com.


Re: [tw5] Re: List sort by count field operator

2021-08-30 Thread amreus
Thank you Mohammad,

I have learned much from your wikis on github.

However, in your enthusiasm I think you over-looked the desire to sort the 
names by count.  

I thought I saw an old post that showed a possible way by using an 
intermediate list, prefixing the count to the title with a delimiter, 
sorting the list, and finally splitting the count from the title - but I am 
unable to find it using search, and also do not recall if the method could 
be applied in this case.


On Monday, August 30, 2021 at 11:28:26 AM UTC-4 Mohammad wrote:

> Jim,
> Give a try with this script!
>
> 
> <$list filter="[all[tiddlers]!is[system]each[surname]get[surname]]"> 
> <$link/>(<$count 
> filter="[all[tiddlers]surname]"/>)
> 
> 
> You can also replace <$link/>  with <$text text=<>/>
>
>
> Best wishes
> Mohammad
>
>
> On Sun, Aug 29, 2021 at 6:15 PM Jim  wrote:
>
>> Not OP but in my case, I'd like to generate a list of surnames sorted by 
>> how many tiddlers share the same surname field.
>>
>> Output should look similar to this:
>>
>>
>>- Took (26)
>>- Brandybuck (24)
>>- Baggins (24)
>>- Bolger (22)
>>- Boffin (18)
>>- Gardner (14)
>>- Gamgee (7)
>>- Burrows (7)
>>
>>
>> On Sunday, August 29, 2021 at 9:10:08 AM UTC-4 Soren Bjornstad wrote:
>>
>>> Can you maybe upload a small wiki with some tiddlers that could serve as 
>>> an example? It's pretty difficult to go into more depth without any data to 
>>> try it on.

 teric wikiery would be greatly appreciated...
>>
> -- 
>> 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+...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/4feea918-07db-46d9-9489-a23cea65658dn%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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/d9293190-4bca-46ef-923a-d0ce0a8b0270n%40googlegroups.com.


Re: [tw5] Re: List sort by count field operator

2021-08-30 Thread Mohammad Rahmani
Jim,
Give a try with this script!


<$list filter="[all[tiddlers]!is[system]each[surname]get[surname]]">
<$link/>(<$count filter="[all[tiddlers]surname]"/>)


You can also replace <$link/>  with <$text text=<>/>


Best wishes
Mohammad


On Sun, Aug 29, 2021 at 6:15 PM Jim  wrote:

> Not OP but in my case, I'd like to generate a list of surnames sorted by
> how many tiddlers share the same surname field.
>
> Output should look similar to this:
>
>
>- Took (26)
>- Brandybuck (24)
>- Baggins (24)
>- Bolger (22)
>- Boffin (18)
>- Gardner (14)
>- Gamgee (7)
>- Burrows (7)
>
>
> On Sunday, August 29, 2021 at 9:10:08 AM UTC-4 Soren Bjornstad wrote:
>
>> Can you maybe upload a small wiki with some tiddlers that could serve as
>> an example? It's pretty difficult to go into more depth without any data to
>> try it on.
>>>
>>> teric wikiery would be greatly appreciated...
>
 --
> 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/4feea918-07db-46d9-9489-a23cea65658dn%40googlegroups.com
> 
> .
>

-- 
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/CAAV1gMCDcdmj7p%3DuKTm4Y35N4O_2ffg25%3DZnpg1VD8sqf2pWJQ%40mail.gmail.com.


Re: [tw5] Re: Collapse and expand headings in a tiddler

2021-08-30 Thread Charlie Veniot
Arg, sorry.  Forgot about the quotes.

I almost never specify a tiddler title with quotes.

For example, if transcluding a tiddler called "This_Tiddler", my transclude 
would look like this:

<$transclude tiddler={{ This_Tiddler!!title }} mode="block"/>


I'm an incessant tweaker by nature, so often change my tiddler titles to 
get them just right as tiddler content/scope/purpose evolves, and tiddler 
titles in quotes don't get changed upon save of a tiddler with the new 
title.

The Relink plugin, though, comes to the rescue as long as I reference 
titles as per that transclude sample above.
On Monday, August 30, 2021 at 10:48:10 AM UTC-3 theok...@gmail.com wrote:

>   That worked! Thank you! I just had to put quotes around the tiddler 
> title.
>
> On Monday, August 30, 2021 at 9:32:20 AM UTC-4 cj.v...@gmail.com wrote:
> G'day,
>
> If you are using "{{}}" for transclusion, try the transclude widget 
> instead with mode = "block" *(i.e.  <$transclude 
> tiddler=your_tiddler's_title mode="block"/>).*
>
>
>
> On Monday, August 30, 2021 at 9:32:20 AM UTC-4 cj.v...@gmail.com wrote:
>
>> G'day,
>>
>> If you are using "{{}}" for transclusion, try the transclude widget 
>> instead with mode = "block" *(i.e.  <$transclude 
>> tiddler=your_tiddler's_title mode="block"/>).*
>>
>>
>>
>> On Monday, August 30, 2021 at 10:20:32 AM UTC-3 theok...@gmail.com wrote:
>>
>>> @ TW Tones
>>>
>>> Is there a way for this to work with other wikitext after the closing 
>>> summary? I use a lot of wikitext tables and mine isn't working. By that I 
>>> mean my "HelloThere" for transclusion is a big table formatted using 
>>> wikitext.
>>>
>>> On Sunday, August 29, 2021 at 10:38:38 PM UTC-4 TW Tones wrote:
>>>
 Actually the summary tag can contain wiki text.

 I have used it to allow editing {{tiddlername||$:/core/ui/Buttons/edit}}

 HelloThere 
 {{HelloThere||$:/core/ui/Buttons/edit}}

 {{HelloThere}}
 

 I also use filtered transclusion to count something and display that in 
 the summary so there is not need to open it if there are no cases (=0)
 Or wrap the whole thing to optionally display

 <$list filter="display condition" variable=nul emptyMessage="No details 
 message">
 HelloThere 
 {{HelloThere||$:/core/ui/Buttons/edit}}

 {{HelloThere}}
 
 

 Regards
 Tones
 On Monday, 30 August 2021 at 07:56:32 UTC+10 cj.v...@gmail.com wrote:

> Not only can summary be styled, but details can be styled too, as per 
> this snippet from the tiddlers included in that earlier attachment of 
> mine:
>
> <*details* style="background-color:white;border:1px solid lightgray;">
>   <*summary* style="font-size:1.5em;background-color:white;border:1px 
> solid lightgray;">{{!!title}}<$link>*
>
> <$transclude tiddler=<> mode="block"/>
> 
>
> On Sunday, August 29, 2021 at 6:50:24 PM UTC-3 theok...@gmail.com 
> wrote:
>
>> To add to what @David Gifford said I've been tinkering with the 
>> details html element today. They documentation I was reading said it 
>> didn't 
>> support any attributes besides open/close.
>>
>> BUT...  I discovered SUMMARY which is used to change it's name DOES.
>>
>> 
>> > style="background-color:green;color:white;font-weight:bold;width:220px;">TESTING
>>  
>> DETAILS STYLES
>>
>> Testing a bunch of testing text. a bunch and more and more and more.
>> 
>>
>> On Sunday, August 29, 2021 at 11:39:51 AM UTC-4 cj.v...@gmail.com 
>> wrote:
>>
>>> Hoo Nelly, I'm not an Emacs Org-Mode guy, so that is all 
>>> gobbledygook to me.
>>>
>>> There is a sweet spot for adequate WikiText:
>>>
>>>- complex WikiText formatting markup is bad
>>>- not enough simple WikiText formatting markup is bad
>>>- too much simple WikiText formatting markup is bad
>>>- not enough depends on the person; too much also depends on the 
>>>person
>>>
>>> That can be a drag when one needs some complicated formatting that 
>>> isn't available in WikiText (or whatever markup).
>>>
>>> But having to fall back on HTML/CSS isn't so bad.  With TiddlyWiki, 
>>> it can be plug and play.  Grab somebody else's HTML/CSS, drop it in 
>>> some 
>>> tiddlers, and forget about it.
>>>
>>> Ideally, any HTML (well, anything particularly complicated/messy) 
>>> you do need can be put in a template tiddler, and then it is just a 
>>> matter 
>>> of applying that template anywhere you need via the beauty of 
>>> transclusion 
>>> and then you never need to put your eyeballs on that HTML again.  Well, 
>>> maybe once in a blue moon when really necessary.
>>>
>>> Yeah, I go bananas for transclusion ...
>>>
>>>
>>>
>>>
>>>
>>> On Sunday, August 29, 2021 at 3:17:09 AM UTC-3 Sandip Deshmukh wrote:

Re: [tw5] Re: Collapse and expand headings in a tiddler

2021-08-30 Thread Paul Hampshire
  That worked! Thank you! I just had to put quotes around the tiddler title.

On Monday, August 30, 2021 at 9:32:20 AM UTC-4 cj.v...@gmail.com wrote:
G'day,

If you are using "{{}}" for transclusion, try the transclude widget instead 
with mode = "block" *(i.e.  <$transclude tiddler=your_tiddler's_title 
mode="block"/>).*



On Monday, August 30, 2021 at 9:32:20 AM UTC-4 cj.v...@gmail.com wrote:

> G'day,
>
> If you are using "{{}}" for transclusion, try the transclude widget 
> instead with mode = "block" *(i.e.  <$transclude 
> tiddler=your_tiddler's_title mode="block"/>).*
>
>
>
> On Monday, August 30, 2021 at 10:20:32 AM UTC-3 theok...@gmail.com wrote:
>
>> @ TW Tones
>>
>> Is there a way for this to work with other wikitext after the closing 
>> summary? I use a lot of wikitext tables and mine isn't working. By that I 
>> mean my "HelloThere" for transclusion is a big table formatted using 
>> wikitext.
>>
>> On Sunday, August 29, 2021 at 10:38:38 PM UTC-4 TW Tones wrote:
>>
>>> Actually the summary tag can contain wiki text.
>>>
>>> I have used it to allow editing {{tiddlername||$:/core/ui/Buttons/edit}}
>>>
>>> HelloThere 
>>> {{HelloThere||$:/core/ui/Buttons/edit}}
>>>
>>> {{HelloThere}}
>>> 
>>>
>>> I also use filtered transclusion to count something and display that in 
>>> the summary so there is not need to open it if there are no cases (=0)
>>> Or wrap the whole thing to optionally display
>>>
>>> <$list filter="display condition" variable=nul emptyMessage="No details 
>>> message">
>>> HelloThere 
>>> {{HelloThere||$:/core/ui/Buttons/edit}}
>>>
>>> {{HelloThere}}
>>> 
>>> 
>>>
>>> Regards
>>> Tones
>>> On Monday, 30 August 2021 at 07:56:32 UTC+10 cj.v...@gmail.com wrote:
>>>
 Not only can summary be styled, but details can be styled too, as per 
 this snippet from the tiddlers included in that earlier attachment of mine:

 <*details* style="background-color:white;border:1px solid lightgray;">
   <*summary* style="font-size:1.5em;background-color:white;border:1px 
 solid lightgray;">{{!!title}}<$link>*

 <$transclude tiddler=<> mode="block"/>
 

 On Sunday, August 29, 2021 at 6:50:24 PM UTC-3 theok...@gmail.com 
 wrote:

> To add to what @David Gifford said I've been tinkering with the 
> details html element today. They documentation I was reading said it 
> didn't 
> support any attributes besides open/close.
>
> BUT...  I discovered SUMMARY which is used to change it's name DOES.
>
> 
>  style="background-color:green;color:white;font-weight:bold;width:220px;">TESTING
>  
> DETAILS STYLES
>
> Testing a bunch of testing text. a bunch and more and more and more.
> 
>
> On Sunday, August 29, 2021 at 11:39:51 AM UTC-4 cj.v...@gmail.com 
> wrote:
>
>> Hoo Nelly, I'm not an Emacs Org-Mode guy, so that is all 
>> gobbledygook to me.
>>
>> There is a sweet spot for adequate WikiText:
>>
>>- complex WikiText formatting markup is bad
>>- not enough simple WikiText formatting markup is bad
>>- too much simple WikiText formatting markup is bad
>>- not enough depends on the person; too much also depends on the 
>>person
>>
>> That can be a drag when one needs some complicated formatting that 
>> isn't available in WikiText (or whatever markup).
>>
>> But having to fall back on HTML/CSS isn't so bad.  With TiddlyWiki, 
>> it can be plug and play.  Grab somebody else's HTML/CSS, drop it in some 
>> tiddlers, and forget about it.
>>
>> Ideally, any HTML (well, anything particularly complicated/messy) you 
>> do need can be put in a template tiddler, and then it is just a matter 
>> of 
>> applying that template anywhere you need via the beauty of transclusion 
>> and 
>> then you never need to put your eyeballs on that HTML again.  Well, 
>> maybe 
>> once in a blue moon when really necessary.
>>
>> Yeah, I go bananas for transclusion ...
>>
>>
>>
>>
>>
>> On Sunday, August 29, 2021 at 3:17:09 AM UTC-3 Sandip Deshmukh wrote:
>>
>>> @Charlie,
>>>
>>> Thanks a lot. The example you showed nearly does what I wanted.
>>>
>>> But to implement it, I will need to do more than write simple 
>>> wikitext.
>>>
>>> I was looking to solution like Emacs org-mode Visibility Cycling 
>>> .
>>>
>>>
>>> @David
>>>
>>> Thanks a ton!
>>>
>>> Your code snippet came in handy for something else that was 
>>> bothering me.  And that is solved now.
>>>
>>> But for collapse/ expand headings, it requires additional markup. 
>>> That would be too cumbersome to implement.
>>>
>>>
>>>
>>> On 29/08/21 4:24 am, David Gifford wrote:
>>>
>>> Everyone always forgets the simplest solution to this. The HTML 

Re: [tw5] Re: Collapse and expand headings in a tiddler

2021-08-30 Thread Charlie Veniot
G'day,

If you are using "{{}}" for transclusion, try the transclude widget instead 
with mode = "block" *(i.e.  <$transclude tiddler=your_tiddler's_title 
mode="block"/>).*



On Monday, August 30, 2021 at 10:20:32 AM UTC-3 theok...@gmail.com wrote:

> @ TW Tones
>
> Is there a way for this to work with other wikitext after the closing 
> summary? I use a lot of wikitext tables and mine isn't working. By that I 
> mean my "HelloThere" for transclusion is a big table formatted using 
> wikitext.
>
> On Sunday, August 29, 2021 at 10:38:38 PM UTC-4 TW Tones wrote:
>
>> Actually the summary tag can contain wiki text.
>>
>> I have used it to allow editing {{tiddlername||$:/core/ui/Buttons/edit}}
>>
>> HelloThere 
>> {{HelloThere||$:/core/ui/Buttons/edit}}
>>
>> {{HelloThere}}
>> 
>>
>> I also use filtered transclusion to count something and display that in 
>> the summary so there is not need to open it if there are no cases (=0)
>> Or wrap the whole thing to optionally display
>>
>> <$list filter="display condition" variable=nul emptyMessage="No details 
>> message">
>> HelloThere 
>> {{HelloThere||$:/core/ui/Buttons/edit}}
>>
>> {{HelloThere}}
>> 
>> 
>>
>> Regards
>> Tones
>> On Monday, 30 August 2021 at 07:56:32 UTC+10 cj.v...@gmail.com wrote:
>>
>>> Not only can summary be styled, but details can be styled too, as per 
>>> this snippet from the tiddlers included in that earlier attachment of mine:
>>>
>>> <*details* style="background-color:white;border:1px solid lightgray;">
>>>   <*summary* style="font-size:1.5em;background-color:white;border:1px 
>>> solid lightgray;">{{!!title}}<$link>*
>>>
>>> <$transclude tiddler=<> mode="block"/>
>>> 
>>>
>>> On Sunday, August 29, 2021 at 6:50:24 PM UTC-3 theok...@gmail.com wrote:
>>>
 To add to what @David Gifford said I've been tinkering with the details 
 html element today. They documentation I was reading said it didn't 
 support 
 any attributes besides open/close.

 BUT...  I discovered SUMMARY which is used to change it's name DOES.

 
 >>> style="background-color:green;color:white;font-weight:bold;width:220px;">TESTING
  
 DETAILS STYLES

 Testing a bunch of testing text. a bunch and more and more and more.
 

 On Sunday, August 29, 2021 at 11:39:51 AM UTC-4 cj.v...@gmail.com 
 wrote:

> Hoo Nelly, I'm not an Emacs Org-Mode guy, so that is all 
> gobbledygook to me.
>
> There is a sweet spot for adequate WikiText:
>
>- complex WikiText formatting markup is bad
>- not enough simple WikiText formatting markup is bad
>- too much simple WikiText formatting markup is bad
>- not enough depends on the person; too much also depends on the 
>person
>
> That can be a drag when one needs some complicated formatting that 
> isn't available in WikiText (or whatever markup).
>
> But having to fall back on HTML/CSS isn't so bad.  With TiddlyWiki, it 
> can be plug and play.  Grab somebody else's HTML/CSS, drop it in some 
> tiddlers, and forget about it.
>
> Ideally, any HTML (well, anything particularly complicated/messy) you 
> do need can be put in a template tiddler, and then it is just a matter of 
> applying that template anywhere you need via the beauty of transclusion 
> and 
> then you never need to put your eyeballs on that HTML again.  Well, maybe 
> once in a blue moon when really necessary.
>
> Yeah, I go bananas for transclusion ...
>
>
>
>
>
> On Sunday, August 29, 2021 at 3:17:09 AM UTC-3 Sandip Deshmukh wrote:
>
>> @Charlie,
>>
>> Thanks a lot. The example you showed nearly does what I wanted.
>>
>> But to implement it, I will need to do more than write simple 
>> wikitext.
>>
>> I was looking to solution like Emacs org-mode Visibility Cycling 
>> .
>>
>>
>> @David
>>
>> Thanks a ton!
>>
>> Your code snippet came in handy for something else that was bothering 
>> me.  And that is solved now.
>>
>> But for collapse/ expand headings, it requires additional markup. 
>> That would be too cumbersome to implement.
>>
>>
>>
>> On 29/08/21 4:24 am, David Gifford wrote:
>>
>> Everyone always forgets the simplest solution to this. The HTML 
>> details disclosure element.
>>
>> Your section header
>>
>> {{Your transcluded tiddler}} 
>>
>> 
>>
>> On Saturday, August 28, 2021 at 1:49:15 PM UTC-5 cj.v...@gmail.com 
>> wrote:
>>
>>> BTW, please remember: anything cosmetically disagreeable can be 
>>> easily adjusted via some quick CSS adjustments. 
>>>
>>> For example: different border setup or no borders, background 
>>> colors, indent of sections within other sections, etc. etc.
>>>
>>> That code demo is very rough around 

[tw5] [FUN Fact] How many conversations in this group has NO Title?

2021-08-30 Thread Taacees ME
After processing more than 10,000 conversation (out of 25K) and more that 
90,000 messages (out of 190K) , we found the following 3:-

https://groups.google.com/g/tiddlywiki/c/OyT4boK4_QQ,
https://groups.google.com/g/tiddlywiki/c/r9l2XcYGhIU,
https://groups.google.com/g/tiddlywiki/c/kgX6GV32jKA

P.S. : this is a part of the TiddlyWiki Projects (25K & Goodfellas)  The 
History Show of the GG Community 


Regards
Taacees

-- 
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/cc04cf0f-fd1b-4a69-8715-56806ce5736fn%40googlegroups.com.


Re: [tw5] Re: Collapse and expand headings in a tiddler

2021-08-30 Thread Paul Hampshire
@ TW Tones

Is there a way for this to work with other wikitext after the closing 
summary? I use a lot of wikitext tables and mine isn't working. By that I 
mean my "HelloThere" for transclusion is a big table formatted using 
wikitext.

On Sunday, August 29, 2021 at 10:38:38 PM UTC-4 TW Tones wrote:

> Actually the summary tag can contain wiki text.
>
> I have used it to allow editing {{tiddlername||$:/core/ui/Buttons/edit}}
>
> HelloThere 
> {{HelloThere||$:/core/ui/Buttons/edit}}
>
> {{HelloThere}}
> 
>
> I also use filtered transclusion to count something and display that in 
> the summary so there is not need to open it if there are no cases (=0)
> Or wrap the whole thing to optionally display
>
> <$list filter="display condition" variable=nul emptyMessage="No details 
> message">
> HelloThere 
> {{HelloThere||$:/core/ui/Buttons/edit}}
>
> {{HelloThere}}
> 
> 
>
> Regards
> Tones
> On Monday, 30 August 2021 at 07:56:32 UTC+10 cj.v...@gmail.com wrote:
>
>> Not only can summary be styled, but details can be styled too, as per 
>> this snippet from the tiddlers included in that earlier attachment of mine:
>>
>> <*details* style="background-color:white;border:1px solid lightgray;">
>>   <*summary* style="font-size:1.5em;background-color:white;border:1px 
>> solid lightgray;">{{!!title}}<$link>*
>>
>> <$transclude tiddler=<> mode="block"/>
>> 
>>
>> On Sunday, August 29, 2021 at 6:50:24 PM UTC-3 theok...@gmail.com wrote:
>>
>>> To add to what @David Gifford said I've been tinkering with the details 
>>> html element today. They documentation I was reading said it didn't support 
>>> any attributes besides open/close.
>>>
>>> BUT...  I discovered SUMMARY which is used to change it's name DOES.
>>>
>>> 
>>> >> style="background-color:green;color:white;font-weight:bold;width:220px;">TESTING
>>>  
>>> DETAILS STYLES
>>>
>>> Testing a bunch of testing text. a bunch and more and more and more.
>>> 
>>>
>>> On Sunday, August 29, 2021 at 11:39:51 AM UTC-4 cj.v...@gmail.com wrote:
>>>
 Hoo Nelly, I'm not an Emacs Org-Mode guy, so that is all 
 gobbledygook to me.

 There is a sweet spot for adequate WikiText:

- complex WikiText formatting markup is bad
- not enough simple WikiText formatting markup is bad
- too much simple WikiText formatting markup is bad
- not enough depends on the person; too much also depends on the 
person

 That can be a drag when one needs some complicated formatting that 
 isn't available in WikiText (or whatever markup).

 But having to fall back on HTML/CSS isn't so bad.  With TiddlyWiki, it 
 can be plug and play.  Grab somebody else's HTML/CSS, drop it in some 
 tiddlers, and forget about it.

 Ideally, any HTML (well, anything particularly complicated/messy) you 
 do need can be put in a template tiddler, and then it is just a matter of 
 applying that template anywhere you need via the beauty of transclusion 
 and 
 then you never need to put your eyeballs on that HTML again.  Well, maybe 
 once in a blue moon when really necessary.

 Yeah, I go bananas for transclusion ...





 On Sunday, August 29, 2021 at 3:17:09 AM UTC-3 Sandip Deshmukh wrote:

> @Charlie,
>
> Thanks a lot. The example you showed nearly does what I wanted.
>
> But to implement it, I will need to do more than write simple wikitext.
>
> I was looking to solution like Emacs org-mode Visibility Cycling 
> .
>
>
> @David
>
> Thanks a ton!
>
> Your code snippet came in handy for something else that was bothering 
> me.  And that is solved now.
>
> But for collapse/ expand headings, it requires additional markup. That 
> would be too cumbersome to implement.
>
>
>
> On 29/08/21 4:24 am, David Gifford wrote:
>
> Everyone always forgets the simplest solution to this. The HTML 
> details disclosure element.
>
> Your section header
>
> {{Your transcluded tiddler}} 
>
> 
>
> On Saturday, August 28, 2021 at 1:49:15 PM UTC-5 cj.v...@gmail.com 
> wrote:
>
>> BTW, please remember: anything cosmetically disagreeable can be 
>> easily adjusted via some quick CSS adjustments. 
>>
>> For example: different border setup or no borders, background colors, 
>> indent of sections within other sections, etc. etc.
>>
>> That code demo is very rough around the edges, just to prototype a 
>> design possibility.
>>
>> On Saturday, August 28, 2021 at 3:41:45 PM UTC-3 Charlie Veniot wrote:
>>
>>> Hello, 
>>>
>>> Just a code sample in case of any use.  It is just me imagining how 
>>> I'd create a basic setup to get started.  A little bit rough around the 
>>> edges.
>>>
>>> Download the attached and drag it into 

Re: [tw5] Re: Use Talk Tiddlywiki instead of Google Forum

2021-08-30 Thread PMario
On Sunday, August 29, 2021 at 9:55:44 PM UTC+2 cj.v...@gmail.com wrote:

The "Wide Theme 
> " would 
> be good, but useless to me if I can't have both the Wide Theme and Sam's 
> Simple Theme simultaneously.
>
> Well, I suppose there can only be one selected theme, so I'd need some 
> kind soul to combine Wide and Sam's Simple into an all in one.  "Wide Sam's 
> Simple"?  Well, just wide for viewing a topic.  With Sam's Simple to view 
> list of topics, it wouldn't make much sense for that to be wide.
>

Discourse knows 2 types components that can act as a theme. 

   - There are "full themes", which completely re-defines the UI.
   - There are "theme components" 

Theme components only modify elements for the existing default theme. ... 
So theoretically it should be possible to define a "component theme" that 
is based on "simple" and also modifies the topic width. The name may be 
"simple overview - wide topics" or something similar. 

BUT someone was to dive into the Discourse theme-building mechanism, to 
define the changes and publish them in a way that fit the Discourse "best 
practices". 

Theme components have the advantage, that they should "survive" global 
theme changes made by the default theme. 

That said ... I did skim the Discourse docs just a little bit, to get an 
overview. .. That's not enough to create a component as requested. ... BUT 
it should be doable. 

have fun!
mario

-- 
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/f58f303b-e739-464b-8bba-3dfb436a60b8n%40googlegroups.com.