# Templater plugin for Obsidian
The Template plugin for Obsidian is a powerful templating engine that provides many more features than the built-in one. It can be used to execute scripts (i.e., little programs) when using the templates (e.g., to calculate dates, generate links, fetch information, and more!).
Once you have created a template, you can easily add it to any note using the `ALT/Cmd + E` shortcut.
## Example
Here's an example taken from the [Obsidian Starter Kit](https://store.dsebastien.net/l/obsidian-starter-kit) which uses this plugin extensively:
```markdown
---
tags:
- weekly_notes
---
# <% tp.file.title %>
<< [[<% tp.date.now("YYYY-[W]WW", "P-1W") %>]] | [[<% tp.date.now("YYYY-[W]WW", "P+1W") %>]] >>
Current month: [[<% tp.date.now("YYYY-MM") %>]] | Next month: [[<% tp.date.now("YYYY-MM", "P+1M") %>]]
Year note: [[<% tp.date.now("YYYY") %>]]
## Goals
-
## Achievements
-
## Discoveries
### [[<% tp.date.now("YYYY-MM-DD") %>]]
-
### [[<% tp.date.now("YYYY-MM-DD", 1) %>]]
-
### [[<% tp.date.now("YYYY-MM-DD", 2) %>]]
-
### [[<% tp.date.now("YYYY-MM-DD", 3) %>]]
-
### [[<% tp.date.now("YYYY-MM-DD", 4) %>]]
-
### [[<% tp.date.now("YYYY-MM-DD", 5) %>]]
-
### [[<% tp.date.now("YYYY-MM-DD", 6) %>]]
-
## Challenges
-
## Gratitude
-
```
## References
- https://github.com/SilentVoid13/Templater
- https://silentvoid13.github.io/Templater/