vault-templates
Installation
SKILL.md
Templater Convention & Drift Repair
Obsidian's Templater plugin renders placeholder syntax when a new note is created. When rendering fails (plugin error, user dismissal, manual copy-paste), the literal markers get committed and persist. Fixing them is mechanical.
Unrendered Markers
| Marker | Meaning | Fix |
|---|---|---|
<% tp.file.cursor(N) %> |
Cursor position placeholder | Strip the entire tag |
<% tp.file.title %> |
Filename stem | Replace with actual filename (no .md) |
<% tp.date.now("YYYY-MM-DD") %> |
Today's date | Replace with the creation date from frontmatter, or the filename date for daily notes |
{{title}} |
Filename stem (legacy) | Replace with filename stem |
{{date}} |
Today's date (legacy) | Same as above |
<% await tp.system.prompt(...) %> |
User prompt | Strip; requires user to refill |