Can we put the version of TW at the top of the "Hello there" tiddler?

Truncate to “v5.3.6-pre” ?

Note that the prerelease already includes the full version number in the site subtitle.

image

Hi Jeremy,
I think the simple solution is a small CSS like below:


\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline conditional
<%if [{$:/config/Stylesheet/Visibility/$:/plugins/kookma/utility/styles/tw-version}match[show]] %>
/* TW-version added to site title */
.tc-site-title:before {
content:"TW <<version>>";
position:absolute;
margin-top:-1.9em;
color:silver;
font-size:13px;
}
<%endif%>

This is what I use in kookma Utility! You can have a visibility config tiddler let users to show/hide the version badge!
In the above example I used $:/config/Stylesheet/Visibility/$:/plugins/kookma/utility/styles/tw-version

2 Likes

Hmm, that does look good. You should use color:<<color sidebar-foreground>>; or something like that so it works with other color palettes.

Good catch!
Thank you Simon!

This looks great. I agree with @simon about using the palette for this, although I would choose sidebar-muted-foreground.

I’m curious about the $:/config/Stylesheet/Visibility namespace: Is this your own convention or a shared one? Is there a UI for it? I can easily imagine a quick screen on the control panel with a bunch of toggle switches. But I’m not noticing anything like that on kookma.

A more useful idea would (though not possible with a pseudo element) would be for it to be a link - to either of tiddlers TiddlyWiki Releases or Releases

image

The link has value because in the official release (as opposed to the prerelease) there is no direct or obvious access to these tiddlers. And searching for “release” yields an overly long list… assuming you even know that lingo term “release”, and that this is the particular lingo used in this project.

3 Likes

Should I try another PR to implement the pseudo element approach suggested by @Mohammad?

Do we think this is a feature for tw.com edition only, or should be include in the empty.html files too?

1 Like

Yes, this is a suggestion! I suggest using Visibility, but there is other solution to show/hide it!

One can put the css in a separate tiddler and add/remove $:/tags/Stylesheet, but this is not a good practice, as shadow converted to system tiddler and on update will be there.

Just to add that I think that’s an excellent idea.