I understood that, my problem is how to do it! It might help to say that
I'm very new to TiddlyWiki, not at all familiar with html/css, and English
is not my native language (especially troublesome when I have to google
every other word, as in the case of the official documentation).
I tried creating a "yellow" class by changing and adding a lot of stuff in
the "mytable" tiddler, like for example:
\define mytable(colorclass)
|persontable $lightgrey$ $yellow$|k
|>| @@display:block;width:23em;<div class="lightgrey">''[Tiddler-specific
title]''</div>@@ |
|^@@display:block;width:6.5em; ''Value 1'' @@
|@@display:block;width:15em;{{!!value1}}@@ |
|^@@display:block;width:6.5em;''Value 2''@@ |@@display:block;width:15em;@@ |
|^@@display:block;width:6.5em;''Value 3''@@ |@@display:block;width:15em;@@ |
\end
<$macrocall $name="mytable" colorclass={{!!tablecolor}}/>
And neither this nor other options work.
In essence: I have no idea of what I'm doing. I've read the 'Styles and
Classes' documentation, but the code there is different, and it doesn't
seem to explain how to do exactly what I want...
Really sorry for bothering you with this, I'm sure your explanations are
great, it's just that I'm a bit more of a newbie than most of newbies here!
Rafael
sexta-feira, 12 de Outubro de 2018 às 23:59:11 UTC+1, Mark S. escreveu:
>
> Yes, you need to create classes for each color. Sorry if that wasn't clear.
>
> -- Mark
>
> On Friday, October 12, 2018 at 3:36:38 PM UTC-7, Rafael Aprato wrote:
>>
>> I know there's something obvious I'm overlooking, but how do I add
>> another class for yellow, for example? if I have this in a "mytable"
>> tiddler:
>>
>> \define mytable(colorclass)
>> |persontable $colorclass$|k
>> |>| @@display:block;width:23em;<div class="lightgrey">''[Tiddler-specific
>> title]''</div>@@ |
>> |^@@display:block;width:6.5em; ''Value 1'' @@
>> |@@display:block;width:15em;{{!!value1}}@@ |
>> |^@@display:block;width:6.5em;''Value 2''@@
>> |@@display:block;width:15em;@@ |
>> |^@@display:block;width:6.5em;''Value 3''@@
>> |@@display:block;width:15em;@@ |
>> \end
>> <$macrocall $name="mytable" colorclass={{!!tablecolor}}/>
>>
>> And then call the template with {{mytable}} in "Person 1", the cell comes
>> out as lightgrey without any "colorclass" field. I imagine the solution as
>> to do with what you said here:
>>
>> Tables can add their own class with a line like:
>>>
>>> |firstclass secondclass|k
>>>
>>> at the start.
>>>
>>
>> But playing around that second column only produces errors...
>>
>> Do I need to modify the Stylesheet? What am I missing?
>>
>> Rafael
>>
>
--
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/7f64fe54-b749-47f5-be8b-d8e2c1a0fc1d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.