aliases:
cssclasses:
- soft-embed
description: Templates is a Core plugins|core plugin that lets you insert pre-defined snippets of text into your active note.
mobile: true
permalink: plugins/templates
publish: trueTemplates
Templates is a core plugin that lets you insert pre-defined snippets of text into your active note.
Set your template folder
- In the bottom-left corner, click Settings (
).
- Under Core plugins → Templates → Template folder location, enter the folder containing your templates.
Template variables
You can add dynamic information to your templates, using template variables. When you insert a template containing a template variable, Templates replaces it with its corresponding value.
| Variable | Description |
|---|---|
{{title}} |
Title of the active note. |
{{date}} |
Today's date. Default format: YYYY-MM-DD. |
{{time}} |
Current time. Default format: HH:mm. |
Both {{date}} and {{time}} allow you to change the default format using a format string.
To set a format string, add a colon (:) followed by a string of Moment.js format tokens, for example {{date:YYYY-MM-DD}}.
You can use {{date}} and {{time}} interchangeably with format strings, for example {{time:YYYY-MM-DD}}.
You can change the default date and time formats under Settings → Templates → Date format and Settings → Templates → Time format.
You can also use the {{date}} and {{time}} template variables in the Daily notes and Unique note creator plugins.
Create a template
In the template folder, create a note containing the text you want to appear when you use the template. You can use template variables for dynamic text like the current date.
For example, here's a template for study notes:
---
topic:
date: "{{date}}"
course:
tags:
- studies
---
# {{title}}
## Key Concepts
## Important Details
## Examples
## Questions
-
## Summary
## Related Topics
- [[]]
Insert a template into the active note
Important: To insert a template, you need to first Set your template folder.
- In the ribbon, click Insert template.
- Select the template to insert at the cursor position in the active note.
Template properties
When you insert a template into the active note, all the properties from the template will be added to the note. Obsidian will also merge any properties that exist in your note with properties in the template.