在使用~TiddlyWiki的時候,都一直想要有個New Tiddler From Template的功能,現在~找到解決的方法啦!
<<newTiddler label:'新增今日工作事項' title:{{new Date().formatString('YYYY-0MM-0DD')}} text:{{store.getTiddlerText('[Template]Journal').replace(/(\{\{\{\n?|\}\}\})\n?/g,'')}} tag:'journal'>>
Parameter | Description |
---|---|
label | Text link to create tiddler |
prompt | The tooltip for the button |
accessKey | The access key to trigger the button (specify a single letter; different browsers require a different modifier key like Alt- or Control-) |
focus | Which of the edittable fields to default the focus to (eg, "title", "text", "tags") |
template | The template to use to display the new tiddler (defaults to EditTemplate) |
text | The default text for the new tiddler |
title | The default title for the new tiddler |
tag | A single tag to be applied to the new tiddler (repeat this parameter to specify multiple tags) |
參考資料來源:TW Help:NewTiddler
沒有留言:
張貼留言