The templater create note action creates a new note using a Templater template.
interface TemplaterCreateNoteButtonAction { type: 'templaterCreateNote'; templateFile: string; // the path to the template file, relative to the vault root folderPath?: string; // the optional path to the folder to create the note in, relative to the vault root fileName?: string; // the optional name of the file to create openNote?: boolean; // whether to open the created note openIfAlreadyExists?: boolean; // whether to open the note if it already exists instead of creating a new one with an incremented name}
This button creates a new note titled New Lecture Note - RENAME ME in the Lectures folder using the Lecture Template template from the templates folder.
New Lecture Note - RENAME ME
Lectures
Lecture Template
templates
```meta-bind-buttonstyle: primarylabel: Create Lecture Noteactions: - type: templaterCreateNote templateFile: "templates/Lecture Template.md" folderPath: Lectures fileName: "New Lecture Note - RENAME ME"```