Everything worked on Tiddlywiki, but on my wiki, after my tweaks, no 
good/no bueno/dim da (that last one is Welsh)

My tweaks to the code:

\define lfdots

<$list filter="[{!!colors}split[,]] 
+[search-replace:i[abr],[gold]] 
+[search-replace:i[bgn],[teal]]
+[search-replace:i[blk],[black]] 
+[search-replace:i[blu],[blue]]
+[search-replace:i[brn],[brown]] 
+[search-replace:i[cyn],[cyan]]
+[search-replace:i[grn],[limegreen]] 
+[search-replace:i[gry],[gray]]
+[search-replace:i[mag],[magenta]] 
+[search-replace:i[org],[orange]]
+[search-replace:i[ppl],[purple]] 
+[search-replace:i[rbn],[sienna]]
+[search-replace:i[red],[red]] 
+[search-replace:i[tny],[burlywood]]
+[search-replace:i[wht],[white]] 
+[search-replace:i[ygn],[yellowgreen]]
+[search-replace:i[yel],[yellow]] 
+[search-replace:i[pnk],[pink]]
+[search-replace:i[lbl],[skyblue]] 
">

<$vars thisStyle={{{ [[min-height:20px;width:20px;background-color:]] 
[<currentTiddler>] [[;border-radius:50%;display:inline-block;border:3px 
solid black;]] +[join[]] }}}>
<span style={{{ [<thisStyle>] }}}>&nbsp;</span>

</$vars>

</$list>
\end


   - number of  &nbsp; doesn't seem to matter as long as there's one - on 
   tiddlywiki.com
   - I realize that if I use a delimiter in the split, I can have different 
   length parameters, and therefore dont need abbreviations or the 
   search-replace commands; I'm using them at the moment for habit's sake

So when I create the macro definition tiddler, when I saved it before, it 
looked empty, but now it looks like this:

[image: lfdots Macro tid.png]

and the test tid, with the text <<lfdots>> (lfdots for large field dots, as 
opposed to sddots = small defined dots) looks like this:

[image: lfdots test.png]

So what did I do wrong? I've been over and over for typos, but not seeing 
it.

On Tuesday, November 30, 2021 at 1:27:48 PM UTC-7 [email protected] wrote:

> You got it.  Well, I could be out to lunch.  Proof is always in the 
> pudding.
>
> On Tuesday, November 30, 2021 at 3:38:44 PM UTC-4 [email protected] 
> wrote:
>
>> So much awesomeness!
>>
>> Okay, so I see now it's not my classes, but regular html color names. If 
>> I want #478AE2, how do I specify that? For some reason, I think [#478AE2] 
>> isn't right - or am I wrong?
>>
>> On Tue, Nov 30, 2021 at 12:34 PM Charlie Veniot <[email protected]> 
>> wrote:
>>
>>> And I hybrid, for the giggles:
>>>
>>> \define beDotted3(likeThis)
>>>
>>> <$list filter="[[$likeThis$]!is[blank]] [{!!colorway}] +[first[]] 
>>> +[split[]] +[search-replace:i[y],[yellow]] +[search-replace:i[r],[red]]">
>>> <$vars thisStyle={{{ [[min-height:25px;width:25px;background-color:]] 
>>> [<currentTiddler>] [[;border-radius:50%;display:inlin-block;border:3px 
>>> solid black;]] +[join[]] }}}>
>>> <span style={{{ [<thisStyle>] }}}>&nbsp;&nbsp;&nbsp;&nbsp;</span>
>>> </$vars>
>>> </$list>
>>>
>>> \end
>>>
>>> On Tuesday, November 30, 2021 at 3:21:03 PM UTC-4 Charlie Veniot wrote:
>>>
>>>> If you had as standard the use of a "colorway" field in your tiddlers, 
>>>> then the macro doesn't need any parameter.
>>>>
>>>> Maybe something like this?
>>>>
>>>> \define beDotted2( )
>>>>
>>>> <$list filter="[{!!colorway}split[]] +[search-replace:i[y],[yellow]] 
>>>> +[search-replace:i[r],[red]]">
>>>> <$vars thisStyle={{{ [[min-height:25px;width:25px;background-color:]] 
>>>> [<currentTiddler>] [[;border-radius:50%;display:inlin-block;border:3px 
>>>> solid black;]] +[join[]] }}}>
>>>> <span style={{{ [<thisStyle>] }}}>&nbsp;&nbsp;&nbsp;&nbsp;</span>
>>>> </$vars>
>>>> </$list>
>>>>
>>>> \end
>>>>
>>>>
>>>> <<beDotted2>>
>>>>
>>>>
>>>> On Tuesday, November 30, 2021 at 3:11:04 PM UTC-4 [email protected] 
>>>> wrote:
>>>>
>>>>> If I'm understanding you right, I think currentTiddler is the right 
>>>>> thing. As an example:
>>>>>
>>>>> {{!!colorway}} 
>>>>>
>>>>> ! The Title of the Thing and the Stuff
>>>>>
>>>>>
>>>>> where colorway is the field with the long PITA spans.
>>>>>
>>>>> Using your macro, it would just be
>>>>>
>>>>> <<beDotted "YYYYRRR">>
>>>>>>
>>>>> ! The Title of the Thing and the Stuff
>>>>>
>>>>>
>>>>> and I could get rid of the colorway field altogether
>>>>>
>>>>> or maybe do something like this?
>>>>>
>>>>> <<beDotted {{!!colors}}>>
>>>>>
>>>>> On Tue, Nov 30, 2021 at 11:50 AM Charlie Veniot <[email protected]> 
>>>>> wrote:
>>>>>
>>>>>> Okay.  Just need to know what the meaty part should be.  (i.e., what 
>>>>>> should be where the "<<currentTiddler>>" is?)
>>>>>>
>>>>>> \define beDotted( likeThis )
>>>>>> <$list filter="[[$likeThis$]split[]]">
>>>>>> <<currentTiddler>>
>>>>>> </$list>
>>>>>> \end
>>>>>>
>>>>>> <<beDotted "YYYYRRR">>
>>>>>>
>>>>>> On Tuesday, November 30, 2021 at 2:42:30 PM UTC-4 Charlie Veniot 
>>>>>> wrote:
>>>>>>
>>>>>>> For sure a macro could do that.  Give me a few minutes.
>>>>>>>
>>>>>>> On Tuesday, November 30, 2021 at 2:33:00 PM UTC-4 [email protected] 
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Oh, sorry - I forgot some details:
>>>>>>>>
>>>>>>>> I just want to be able to ID colors as a visual example easily - 
>>>>>>>> they don't have to be dots. 
>>>>>>>> If I had my druthers, I'd love to have some sort of macro where I 
>>>>>>>> pass in something like "YYYYYRWG" and get the above or similar. Could 
>>>>>>>> a 
>>>>>>>> macro do that?
>>>>>>>>
>>>>>>>> On Tuesday, November 30, 2021 at 11:29:48 AM UTC-7 
>>>>>>>> [email protected] wrote:
>>>>>>>>
>>>>>>>>> I created some classes to created colored dots, so that I can list 
>>>>>>>>> specific colors for a project. I call them colorways. An example :
>>>>>>>>>
>>>>>>>>> [image: Annotation 2021-11-30 112413.png]
>>>>>>>>>
>>>>>>>>> The issue is that coding them is a pita. For example, the code for 
>>>>>>>>> the above is:
>>>>>>>>>
>>>>>>>>> <span class= "cwd ylw"></span><span class= "cwd ylw"></span><span 
>>>>>>>>> class= "cwd ylw"></span><span class= "cwd ylw"></span><span class= 
>>>>>>>>> "cwd 
>>>>>>>>> ylw"></span><span class= "cwd red"></span><span class= "cwd 
>>>>>>>>> wht"></span><span class= "cwd grn"></span>
>>>>>>>>>
>>>>>>>>> where 
>>>>>>>>>
>>>>>>>>>    - cwd is a class that creates colorway dots
>>>>>>>>>    - ylw (and red, wht, grn) is a class that makes the dot yellow
>>>>>>>>>
>>>>>>>>> Can anyone think of an easier way to do this?
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> -- 
>>>>>> 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/e21ed25e-345b-4715-bde5-42bb72a21dc1n%40googlegroups.com
>>>>>>  
>>>>>> <https://groups.google.com/d/msgid/tiddlywiki/e21ed25e-345b-4715-bde5-42bb72a21dc1n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>> .
>>>>>>
>>>>> -- 
>>> 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/35b54060-fc6c-4ca6-a9b0-fa925e2fdd97n%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/tiddlywiki/35b54060-fc6c-4ca6-a9b0-fa925e2fdd97n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>

-- 
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/4440de74-9db6-417c-91ae-be407f85dedbn%40googlegroups.com.

Reply via email to