[tw5] Re: referencing colors used in palette instead of using hex code?

2021-01-21 Thread Justin Hurd
This is exactly what I was looking to do, thank you! I will admit I did 
have to google a word or two, but I think I understand how this functions, 
I'll have to read through your reference work as well, so I can get a 
better understanding of how this works.
On Friday, January 22, 2021 at 1:41:31 AM UTC-5 TW Tones wrote:

> Justin,
>
> This is because you can not concatinate text and the results of your 
> macro  *<>*  in the way you have. 
>
> The resource I am developing is a reference work 
> for all such 
> tiddly wiki methods that will help a learner, but in this case you may 
> specifically be interested the following;
>
>
>- ❷ Widget and HTML attributes or parameters 
>
> 
>  
>
>
> Eg 
> 
> <$wikify name=styles text="text-align: center; width: 100%; border-radius: 
> 12px; background-color:<>;">
> > >
>
> Content
> 
> 
> 
>
> The above is one solution but you can use others to evaluate the variable 
> and concatenate the variable.
>
> The same rules apply to  Widgets as well. 
>
> Another example is;
> \define styles() text-align: center; width: 100%; border-radius: 12px; 
> background-color:<>;
> 
> <$wikify name=styles text="<>">
> > >
>
> Content
> 
> 
> 
>
> Regards
> Tones
> On Friday, 22 January 2021 at 15:08:02 UTC+11 justin.hu...@gmail.com 
> wrote:
>
>> Hello all,
>> I was wondering how I could go about referencing the colors used in the 
>> palette instead of using the colors hexcode, so I can have it change color 
>> shemes to match other palettes, like this:
>>
>> **
>> **
>> ...
>>
>> but when I try this, it doesn't seem to work, so i was wondering if 
>> someone could help/explain why, or where I'm going wrong.
>>
>> If possible, explaining like I'm 5 would help, because I'm not very 
>> familiar with the terms used for TW5 (I *just*  learned what 
>> transclusion meant haha)
>>
>> any help is really 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/996668ec-c87c-43fc-b599-7e0490e84b30n%40googlegroups.com.


[tw5] Re: referencing colors used in palette instead of using hex code?

2021-01-21 Thread TW Tones
Justin,

This is because you can not concatinate text and the results of your macro  
*<>*  in the way you have. 

The resource I am developing is a reference work 
for all such 
tiddly wiki methods that will help a learner, but in this case you may 
specifically be interested the following;


   - ❷ Widget and HTML attributes or parameters 
   

 
   

Eg 
<$wikify name=styles text="text-align: center; width: 100%; border-radius: 
12px; background-color:<>;">
> >

Content




The above is one solution but you can use others to evaluate the variable 
and concatenate the variable.

The same rules apply to  Widgets as well. 

Another example is;
\define styles() text-align: center; width: 100%; border-radius: 12px; 
background-color:<>;

<$wikify name=styles text="<>">
> >

Content




Regards
Tones
On Friday, 22 January 2021 at 15:08:02 UTC+11 justin.hu...@gmail.com wrote:

> Hello all,
> I was wondering how I could go about referencing the colors used in the 
> palette instead of using the colors hexcode, so I can have it change color 
> shemes to match other palettes, like this:
>
> **
> **
> ...
>
> but when I try this, it doesn't seem to work, so i was wondering if 
> someone could help/explain why, or where I'm going wrong.
>
> If possible, explaining like I'm 5 would help, because I'm not very 
> familiar with the terms used for TW5 (I *just*  learned what transclusion 
> meant haha)
>
> any help is really 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/d3a24a07-b184-4ddf-b880-75a5c8a33100n%40googlegroups.com.