Template Variables
Templates support dynamic variables that get replaced with actual values when a note is created. This is especially useful for calendar notes where you want dates filled in automatically.
Variable Syntax
Section titled “Variable Syntax”Variables use curly braces: {variable_name}
When a note is created from a template, variables are replaced with their values based on the context (the date or week being created).
Available Variables
Section titled “Available Variables”| Variable | Description | Example Output |
|---|---|---|
{year} | Year | 2025 |
{week} | ISO week number | 2 |
{month} | Month name | January |
{day} | Day name | Monday |
{date} | Full date (YYYY-MM-DD) | 2025-01-06 |
{monday} | Monday’s date | 2025-01-06 |
{tuesday} | Tuesday’s date | 2025-01-07 |
{wednesday} | Wednesday’s date | 2025-01-08 |
{thursday} | Thursday’s date | 2025-01-09 |
{friday} | Friday’s date | 2025-01-10 |
{saturday} | Saturday’s date | 2025-01-11 |
{sunday} | Sunday’s date | 2025-01-12 |
Example: Weekly Review Template
Section titled “Example: Weekly Review Template”## Week {week} Review
### Monday - {monday}**Accomplishments:**
**Challenges:**
### Tuesday - {tuesday}**Accomplishments:**
**Challenges:**
### Wednesday - {wednesday}**Accomplishments:**
**Challenges:**
### Thursday - {thursday}**Accomplishments:**
**Challenges:**
### Friday - {friday}**Accomplishments:**
**Challenges:**
---
## Weekly Summary**Key wins:**
**Lessons learned:**
**Next week focus:**When you create a weekly note for Week 2 of 2025, the output becomes:
## Week 2 Review
### Monday - 2025-01-06**Accomplishments:**...Example: Daily Journal Template
Section titled “Example: Daily Journal Template”# {day} - {date}
Week {week} of {year}
## Morning**Energy level:**
**Top 3 priorities:**1.2.3.
## Evening**What went well:**
**What could improve:**
**Gratitude:**When you create a daily note for January 6, 2025 (a Monday), the output becomes:
# Monday - 2025-01-06
Week 2 of 2025
## Morning...How Context Works
Section titled “How Context Works”Variables are resolved based on how the note is created:
Daily Notes (from Calendar)
Section titled “Daily Notes (from Calendar)”{date}= the selected date{day}= day name of that date{week}= ISO week number containing that date- Weekday variables = dates for that week
Weekly Notes (from Calendar)
Section titled “Weekly Notes (from Calendar)”{week}= the selected week number{year}= the ISO week-numbering year- Weekday variables = dates for that specific week
{date}= Monday of that week
From Command Palette
Section titled “From Command Palette”When creating a note via “New from Template” in the command palette, the current date is used as context.
Unknown Variables
Section titled “Unknown Variables”If you use a variable that doesn’t exist, it stays as-is in the output. For example, {custom} would remain {custom} in the created note.
Plain Text
Section titled “Plain Text”Variables only work inside template content. The template name itself does not support variables.