Things I have tried
I combed through Templater’s documentation, I asked in Obsidian’s Discord server in plugin general and templater’s thread and got zero responses, and I googled extensively. I found no answer to what I feel is a really basic syntax question. Experimenting with random syntax turned out to be a waste of time as well.
What I’m trying to do
I’m looking for a way to pass on a parameter to a user function “vidname” calling a system command that looks like so:
youtube-dl https://www.youtube.com/watch?v=QgbLb6QCK88 --get-title
where the link should be replaced by whatever the user inputs in this part of the template:
<%* const link = await tp.system.prompt("Link") -%>
The intended usage of the user function within the template would look like this (inserted below the previous template snippet ofc):
---
title: <% await tp.user.vidname(link) %>
---
The final result is intended to be a template that allows me to create a Youtube video note that auto populates the front matter with title and other information about the video based on a Youtube video link pasted into the user prompt popup.