Enable templates
Set your templates folder
Template variables
Templates support three built-in variables that are replaced with live values when you insert the template:| Variable | Description | Default format |
|---|---|---|
{{title}} | The title of the active note. | — |
{{date}} | Today’s date. | YYYY-MM-DD |
{{time}} | The current time. | HH:mm |
Custom date and time formats
Add a colon and a Moment.js format string to override the default format:{{date}} and {{time}} interchangeably for date and time formatting. You can also change the global default formats under Settings → Templates → Date format and Time format.
Create a template
In your templates folder, create a note with the content you want to reuse. Use template variables for anything that should update dynamically. Here’s an example template for study notes:Insert a template
To insert a template into the active note:- Click Insert template in the left ribbon.
- Or, open the Command palette and run Templates: Insert template.
- Or, set a hotkey for the Templates: Insert template command.
Insert the current date or time
Use the commands Templates: Insert current date and Templates: Insert current time to insert just the date or time at your cursor, using the formats configured in plugin settings.Templates vs. Templater
Templates (core)
Built into Obsidian. Supports
{{title}}, {{date}}, and {{time}} variables. Simple and reliable for most use cases.Templater (community)
A community plugin with a far richer scripting language. Supports JavaScript, conditional logic, user prompts, file system access, and hundreds of built-in functions. Install it from Settings → Community plugins.