tp.web.random_picture

2022-05-29

The best and most beautiful things in the world cannot be seen, nor touched… but are felt in the heart. — Helen Keller

今天属于Cyndi

The use of templater

templater obsidian

  1. https://shbgm.ca/obsidian/docs/how-to-use-templater-js-scripts
  2. https://github.com/SilentVoid13/Templater/discussions/187
  3. https://silentvoid13.github.io/Templater/commands/execution-command.html

调试方法

在obsidian中按Ctrl+Shift+I呼出调试窗口,在console页签中可以直接获取到obsidian.d.ts中的API。

例如: 另请参阅generic中关于Javascript代码段的调用,代码段返回值默认无输出,其结果存储在tR变量中,若想输出,应将其写入tR变量1

Javascript语法参考:

  1. https://learnxinyminutes.com/docs/javascript/
  2. Try Js Online

Footnotes

  1. How to output a value from a JavaScript Execution Command ?