Home Creators Posts Import Register Favorites Logout
haven't archived this post yet. have a subscription? use the importer!

Content

If you like buttons and would like to add a button that creates a note that comes with a template then that's the purpose of this video. It shows you how to use the Buttons and Templater plugins in collaboration to quickly create new notes that will:

  • prompt you for the note name
  • move the note to a specified folder
  • apply a specified template to the note

It's a great way to create new notes when in the middle of game. 

Patreon Vault Link 

Template Code

<% tp.file.title %>

<% await tp.file.move("/2. Mechanics/Non-Player Characters/" + tp.file.title) %>


<%*

const hasTitle = !tp.file.title.startsWith("NewNPC");

let title;

if (!hasTitle) {

    title = await tp.system.prompt("Enter NPC Name");

    await tp.file.rename(title);

} else {

    title = tp.file.title;

}

_%>


<% tp.file.cursor() %>

Button Code

```button

name New NPC

type note(NewNPC, split) template

action TemplateNPC

templater true

```

^button-NewNPCID

Files

Previews only

sddefault.jpg

If you like buttons and would like to add a button that creates a note that comes with a template then that's the purpose of this video. It shows you how to use the Buttons and Templater plugins in collaboration to quickly create new notes that will: - prompt you for the note name - move the note to a specified folder - apply a specified template to the note It's a great way to create new notes when in the middle of game. The syntax used in this video is hosted on my Patreon site. Get Obsidian - https://obsidian.md/ Official Discord - https://discord.com/invite/veuWUTm Join Facebook Community - https://www.facebook.com/groups/obsidianttrpgusers Support Me To Make More Content! - https://www.patreon.com/JPlunkett 0:00 Intro 1:15 Demo 4:17 Plugin Installation 07:06 Template Creation 11:49 Button Creation 27:56 Inline Buttons 32:58 Closing Thoughts

Comments

No comments found for this post.