I would love to make some structured templates for different types of notes. However, once they created, I usually want to populate a section “Notes” from this nodes.
For example, I have the following template:
This post might help you structure the variable correctly.
You don’t use :if-new and :target at the same time. They do the same thing. :if-new is old and not to be used any more; :target replaces it. I believe the former remains only for backward compatibility.
I don’t think that these parameters address my problem. For new nodes only I want to fill some standard questions, and capture my notes at the end. For example, like a wikipedia has a “quick info” section with some basic details, and you need only one of those. Even with :target parameter only - I cannot use file based templates.
I found a solution to use files for capture template here:
In your later post you get template from the file for all new captures, and base template for the first file creation comes from the config, and I want exactly the opposite.
I dug a little deeper by going through the code. I don’t think this is documented, but reading the code, I have realized that you can use a function name instead of a string. So this below works. (If you are interested in where to look, it’s function org-roam-capture--fill-template).