Obsidian Templates

Official documentation: help.obsidian.md

A core Obsidian plugin which allows you to create new notes with predefined snippets of text or insert them into the current note.

Features

It can do the following things: 1 2

  • Insert the contents of a template note into the current note.
  • Insert the current date in the default date format into the current note (Templates: Insert current date command).
  • Insert the current time in the default time format into the current note (Templates: Insert current time command).

Template Note

A template note is a note which is in the path that the Obsidian Templates Template folder location setting is set to. 3

Template Variables

A template variable is a string which will be substituted with values when the template is inserted into the current note or used to create a new note. 4 3

VariableDescription
{{title}}Title of the active note.
{{date}}Today’s date in the default format as defined by the Date format setting.
{{date:format}}Today’s date in the format format
{{time}}Today’s time in the default format as defined by the Time format setting.
{{time:format}}Current time in the format format

format can be a Moment.js format string.

Note that while a format string can be used with {{date}} or {{time}}, either of the date or time formats can be changed to use a format that has both the date and time in it. This works for the default format settings too.

Footnotes

  1. 202306011947

  2. 202306012327

  3. 202306012339 2

  4. 202306012331