Action
Non-fiction template book
Steps
-
prompt
promptKey book_title
promptTitle What's the title of the book?
promptMessage promptButtons Next
includeTextField true
textFieldDefault includeCancelButton true
-
prompt
promptKey book_author
promptTitle Name of the Author?
promptMessage promptButtons Done
includeTextField true
textFieldDefault includeCancelButton true
-
script
const template = `# ${draft.getTemplateTag('book_title_text')} Author: ${draft.getTemplateTag('book_author_text')} Started reading: [[date|%A %d. %B, WEEK %V, %Y]] Finished reading: ### Words ### Phrases ### Facts #### Overview & comments #### Locations `; // create the draft var d = Draft.create(); d.content = d.processTemplate(template); d.addTag(d.displayTitle); d.update(); // load in editor and focus for editing editor.load(d); editor.activate()
Options
-
After Success Default Notification Info Log Level Info
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.