第三方模板插件,比 Obsidian 内置的 Templates 更强大,支持 JavaScript 脚本。

示例模板

---
type: books
title: "[[<% tp.file.title %>]]"
cover:
author:
  - '[[<% tp.system.prompt("请输入作者")%>]]'
genre: <% tp.system.suggester(["fiction", "non-fiction"], ["fiction", "non-fiction"], true, 'genre')%>
status: <% tp.system.suggester(["to-read", "reading", "done"], ["to-read", "reading", "done"], true, 'status')%>
rating:
myRating:
summary:
date_creation: <% tp.file.creation_date("YYYY-MM-DD") %>
---

特点