[tw5] Re: How to make the templates which can show it's own info not just title?

2021-09-14 Thread imleg...@gmail.com
Can't thank you more. I will make the question more clearly next time. On Wednesday, September 15, 2021 at 2:52:08 AM UTC+8 PMario wrote: > On Tuesday, September 14, 2021 at 5:45:02 PM UTC+2 imleg...@gmail.com > wrote: > >> Sorry I can't get what your meaning, I copied your code to my tw,

[tw5] Re: How to make the templates which can show it's own info not just title?

2021-09-14 Thread PMario
On Tuesday, September 14, 2021 at 5:45:02 PM UTC+2 imleg...@gmail.com wrote: > Sorry I can't get what your meaning, I copied your code to my tw, nothing > happened, The topic of the OP is: How to make the templates which can show it's own info not just title? My example shows, how you

[tw5] Re: How to make the templates which can show it's own info not just title?

2021-09-14 Thread 'Mark S.' via TiddlyWiki
The {{thing}} *is* the transclusion. But it sounds like you want to change the color of a tiddler based on some criteria. If your criteria is a tag, for instance, than the easy way to do this is with a stylesheet. For instance, say you have tiddlers tagged "Yellow". Then make a tiddler and

[tw5] Automatically generate static website in Node

2021-09-14 Thread Rika Goldberg
Hi All! I am using NodeJS right now to auto save Tiddlers. I love it! I expected that a static website (index.html) would get built automatically on save, but that's not happening. What's an easy way to automatically build a static website on each autosave? (I'm thinking ahead to when I will

Re: [tw5] Re: ISO week date format template

2021-09-14 Thread Jeremy Ruston
OK, I'm thinking now: * To change the token for week number to `dd` * To add a new token for day of year `` and `0` Best wishes Jeremy On Tuesday, September 14, 2021 at 12:34:53 PM UTC+1 PMario wrote: > On Tuesday, September 14, 2021 at 10:19:10 AM UTC+2 Jeremy Ruston wrote: > > If we

[tw5] Re: How to make the templates which can show it's own info not just title?

2021-09-14 Thread imleg...@gmail.com
Sorry I can't get what your meaning, I copied your code to my tw, nothing happened, what I want is a template which can change the background color of the Transclusion. I check the link https://tiddlywiki.com/static/Transclusion%2520with%2520Templates.html which give a example ```

[tw5] Re: How to get the title of a tiddler in js?

2021-09-14 Thread Charlie Veniot
Oh good. Big sigh of relief over here. *(I may have had "look, see, it works" moments while people politely nod in agreement while awkwardly hoping somebody else lifts a hand and breaks the news...)* On Tuesday, September 14, 2021 at 11:03:13 AM UTC-3 strikke...@gmail.com wrote: > cj.v, >

[tw5] Re: How to get the title of a tiddler in js?

2021-09-14 Thread strikke...@gmail.com
cj.v, Thank you. I does work for me too now. It was of course an error on my part - not identifying my own typo. It seems no matter how many times we look our writing through- eyes popping out, errors are often not found. I call it TW eye fatigue. Thank you, Birthe On Tuesday, September 14,

[tw5] Re: How to get the title of a tiddler in js?

2021-09-14 Thread Charlie Veniot
Just to answer your first question, you want to modify the ViewTemplate in your TiddlyWiki that has the plugin. (screenshot below) Also, after you've edited the plugin, you have to make sure to save and reload the TiddlyWiki for the change to take effect. I just tested this again, and it all

[tw5] Re: How to make the templates which can show it's own info not just title?

2021-09-14 Thread PMario
Hi Try something like this: \define test() This is a test \end <> <$view > On Tuesday, September 14, 2021 at 11:14:04 AM UTC+2 imleg...@gmail.com wrote: > I read the page > https://tiddlywiki.com/static/Transclusion%2520with%2520Templates.html > > which tell me how to make the template

Re: [tw5] Re: ISO week date format template

2021-09-14 Thread PMario
On Tuesday, September 14, 2021 at 10:19:10 AM UTC+2 Jeremy Ruston wrote: If we stick with `` for day of week, perhaps we'd use `d` for day > of year? They are very similar. For me it's difficult to recognise a difference. ... > Perhaps that's excessively long, but it does seem

[tw5] Re: How to make the templates which can show it's own info not just title?

2021-09-14 Thread imleg...@gmail.com
And one more question how to set a template as the default setting of the Transclusion, since I use the template so much it will be boring if I have to set the template manually everytime On Tuesday, September 14, 2021 at 5:14:04 PM UTC+8 imleg...@gmail.com wrote: > I read the page >

[tw5] How to get the top tiddler in view?

2021-09-14 Thread imleg...@gmail.com
I use a shortcut to edit the top tiddler . Content is : ``` <$navigator story="$:/StoryList" history="$:/HistoryList"> <$action-sendmessage $message="tm-edit-tiddler" $param={{{ [list[$:/StoryList]first[]] }}}/> ``` But now I want to edit the top tiddler in view, that means when you scroll

[tw5] Re: How to get the title of a tiddler in js?

2021-09-14 Thread strikke...@gmail.com
Charlie - editing the viewtemplate lead to another problem - 2 click on one tiddler open all standard tiddlers for edit. On Tuesday, September 14, 2021 at 11:29:20 AM UTC+2 strikke...@gmail.com wrote: > You find the viewtemplate in .Danielos 2click2edit plugin >

[tw5] Re: shortcut to open the control panel

2021-09-14 Thread imleg...@gmail.com
Done. Use the comand like this : <$action-navigate $to="$:/ControlPanel"/> ![](https://i.loli.net/2021/09/14/nLUueVaBl2c75sz.png) On Monday, September 13, 2021 at 3:26:57 AM UTC+8 cj.v...@gmail.com wrote: > Oops, what I previously wrote holds true for "Font size for tiddler > body",

[tw5] Re: How to get the title of a tiddler in js?

2021-09-14 Thread strikke...@gmail.com
You find the viewtemplate in .Danielos 2click2edit plugin On Tuesday, September 14, 2021 at 10:36:23 AM UTC+2 imleg...@gmail.com wrote: > thank you. Can you give me a link about the viewtemplate, cuz I

[tw5] How to make the templates which can show it's own info not just title?

2021-09-14 Thread imleg...@gmail.com
I read the page https://tiddlywiki.com/static/Transclusion%2520with%2520Templates.html which tell me how to make the template of the Transclusion Which I think is great. But I don't know how to make the template to show it's own info. If I use the "{{}}" in the template tiddler I will get a

[tw5] Re: How to get the title of a tiddler in js?

2021-09-14 Thread imleg...@gmail.com
thank you. Can you give me a link about the viewtemplate, cuz I can't find it on google. And why we put a "<$click>" here On Monday, September 13, 2021 at 12:50:49 AM UTC+8 cj.v...@gmail.com wrote: > Hi, > > Instead of altering the javascript, give what's in the screenshot below a > try. > >

Re: [tw5] how to use the tm-navigate command?

2021-09-14 Thread Jeremy Ruston
The tm-navigate message cannot be issued directly from wikitext, instead you can use the <$action-navigate> widget: https://tiddlywiki.com/#ActionNavigateWidget Best wishes Jeremy -- Jeremy Ruston jer...@jermolene.com https://jermolene.com > On 14 Sep 2021, at 09:26, imleg...@gmail.com

[tw5] how to use the tm-navigate command?

2021-09-14 Thread imleg...@gmail.com
I do a lot of rearch and can't find a example. I check the manual and follow it, then write the command like this: <$action-sendmessage $message="tm-navigate" $param="$:/ControlPanel" $event="navigateTo"/> But it not worked. How to use it. -- You received this message because you are

Re: [tw5] Re: ISO week date format template

2021-09-14 Thread Jeremy Ruston
> The "dd" format is reminding of the n umerical notation in the month date, but at the same time may be confusingly similar and suggesting a two digit representation. "" feels more related to the existing weekday name notations, one could think that longer token indicates lesser units in

Re: [tw5] Re: ISO week date format template

2021-09-14 Thread PMario
On Monday, September 13, 2021 at 8:46:04 PM UTC+2 Jeremy Ruston wrote: Now that I started to write out the rationale for the choice of "", I'm > realising that perhaps I think "dd" might be a better choice. What do > others think? > I think 0dd and dd should be an option. I think 0dd is