I’ve been tinkering with the viewtemplates in tiddlywiki, and one that I am stuck on right now is the one used for displaying the modified time of a tiddler.
What I want to do is have a relative date show, but if you hover over it, it gives you the exact date. I tried to acheive this with the code below, but I may be overthinking things, because I’m not entirely sure how to add the full timestamp to the title of the span element
Don’t just look at it, try it out! (I know this advice can be difficult for complicated ideas, but for something as simple as removing quotes from one line, I highly recommend developing the habit of experimentation.)
I’m afraid that wouldn’t be valid syntax. An HTML element (or a widget, which has the same syntax) cannot itself be the attribute value of another HTML element. (This is partly because of the ambiguity of things like />) See the documentation for a list of things that can be used as HTML attributes (you will have to scroll to the big “Attributes” heading).