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 *<<colour page-background>>* in the way you have. > > The resource I am developing is a reference work > <https://anthonymuscio.github.io/#Standard%20Nomenclature>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 > > <https://anthonymuscio.github.io/#%E2%9D%B7%20Widget%20and%20HTML%20attributes%20or%20parameters> > > > > Eg <htmltag attribute= is equivalent to *<details open style=* > > <div class="left"> > <$wikify name=styles text="text-align: center; width: 100%; border-radius: > 12px; background-color:<<colour page-background>>;"> > <details open style=<<styles>> > > > Content > </details> > </$wikify> > </div> > > 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:<<colour page-background>>; > <div class="left"> > <$wikify name=styles text="<<styles>>"> > <details open style=<<styles>> > > > Content > </details> > </$wikify> > </div> > > 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: >> >> *<div class="left">* >> *<details open style="text-align: center; width: 100%; border-radius: >> 12px; background-color:**<<colour page-background>>;">* >> ... >> >> 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.