Templater
A powerful template engine with dynamic dates, prompts, and JavaScript for automating note creation.
Overview
Templater replaces Obsidian's basic core Templates with a full templating engine. It can insert dynamic dates, prompt you for input, run JavaScript, pull in the current file's metadata, and even trigger commands automatically when a note is created. If you find yourself typing the same boilerplate over and over, Templater eliminates it.
What is Templater?
A powerful template engine for Obsidian. Define templates with dynamic commands, JavaScript execution, user prompts, and system commands. Far more powerful than core templates.
Key Features
- Dynamic date and time formatting with Moment.js
- Interactive prompts and suggesters for user input
- Inline JavaScript execution for advanced logic
- Automatic template application on new-note creation
- Access to file metadata, titles, and folders inside templates
How to Install Templater
- 1Open Settings → Community plugins and disable Restricted mode.
- 2Click Browse, search for "Templater", then Install and Enable.
- 3Open the Templater settings tab and set your template folder location.
- 4Create a template note using <% %> command syntax.
- 5Insert it with the "Templater: Open insert template modal" command.
How to Use Templater
Templater commands are written between <% and %> tags. For example, <% tp.date.now("YYYY-MM-DD") %> inserts today's date in a specific format.
You can assign templates to folders so that any new note created there is automatically populated — perfect for daily notes, meeting notes, or book notes.
Details
- GitHub stars
- 6k+
- Platforms
- Desktop, Mobile
- License
- GPL-3.0
Frequently Asked Questions
How is Templater different from the core Templates plugin?
Core Templates only does simple {{date}} substitution. Templater adds custom date formats, user prompts, JavaScript, and automatic template application — it is a full engine rather than a text snippet tool.
Do I need to know JavaScript to use Templater?
No. Many powerful templates use only the built-in tp.date and tp.file commands. JavaScript is optional for advanced automation.
Related Obsidian Plugins
Dataview
Query your Markdown notes like a database and build automated dashboards, lists, and MOCs.
QuickAdd
Quickly add content to your vault with powerful macros, templates, and capture workflows. Automate repetitive actions with multi-step commands.
Periodic Notes
Create and manage daily, weekly, monthly, quarterly, and yearly notes with customizable templates and folder organization.
Advanced Tables
Improved table editing in Obsidian with spreadsheet-like navigation, auto-formatting, formulas, sorting, and CSV/HTML export. Makes Markdown tables painless.
Related Guides
Explore more Obsidian resources
Discover more plugins, themes, templates, and starter vaults to build your perfect Obsidian setup.