Enable templates
1
Open Settings
Click the gear icon in the bottom-left corner, or press
Ctrl+, (Cmd+, on macOS).2
Go to Core plugins
Select Core plugins in the sidebar and toggle on Templates.
Set your templates folder
1
Open Templates settings
Go to Settings → Core plugins → Templates.
2
Set the folder
In the Template folder location field, enter the path to your templates folder (for example,
Templates or _meta/templates).Template variables
Templates support three built-in variables that are replaced with live values when you insert the template: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.