Robert,
Nice work on Mats's behalf here using the new class features. I would have
answered but Mat had done so, I used this this the past in TWC and thought
I would just open up some related ideas.
I used this method in the past to indicate Questions, Answers and
assertions and exclamations on tiddlers without altering the tiddler name,
although I think it is important to be able to toggle this on or off, in
TW5, perhaps adding and removing the $:/tags/Stylesheet tag from the cutom
stylesheet.
The title had the suffix as follows
- Question ?
- Answer ?! (A question with an assertion)
- Exclamation ! (A statement of believed fact, an answer that had no
question)
- An assertion to Question !? (A statement I believe to be true but
needs a little more confirmation)
Of course the above was driven by tagging which allowed one to action or
search for Questions/Answers. The advantage here is no need to change the
tiddler title when the Question is answered, Just change the tags and it is
displayed differently.
In TW5 I also used a custom class so that inside tiddlers I could indicate
Questions and answers with colour highlighting as follows
;.q The Question here
:.a The answer here
Defining in a style-sheet the q and a classes.
And subsequently I found a method to count the ";.q" and ":.a" strings in a
tiddler indicating how many Q&A pairs existed in the tiddler, and or how
many questions were still "unanswered".
Regards
Tony
On Sunday, October 14, 2018 at 11:01:26 PM UTC+11, Robert Barker wrote:
>
> EDIT: It works now, heh...re-entered it using your and some other examples.
>
> [data-tags*="Period"] .tc-title:after{
> content: ".";
> color: red;
>
> Thank you again!
>
> ----
> Thanks for the reply. For some reason, title style changes do not seem to
> apply regardless of standard change like text color or {after} , only had
> luck with general stuff without tc.title like background on whole tiddler
> or having styled "Content" appended to the tiddler itself.
> This is on a blank copy from editions v5.1.17.
>
>
>
>
> On Sunday, October 14, 2018 at 5:37:33 AM UTC-4, Mat wrote:
>>
>> title: whateveryouwant
>> tags: $:/tags/Stylesheet
>> text:
>> [data-tags*="Period"] .tc-title:after {
>> content:"xxxxxxxxxxx";
>> color:red;
>> }
>>
>> <:-)
>>
>
--
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/9968b4ce-3853-4a5b-9b07-d5ea835cf62c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.