It seems to me it should be possible if the command can copy the value of search_parameter and place it right after the search_query= in the actual youtube link.
It’s possible with dataview. But depends if you want to use the plugin; if you use reading view instead of live preview; if you want an instantaneous update of the link; etc.
Appreciate the quick response. If you have any spare time, would you be able to help me with this? This would be used mostly during live preview mode.
Basically, there is a website with a glossary of things I want to use for my games, and the search URL follows a consistent pattern.
I was hoping to have a way to be able to type a specific value into the search_parameter below and this would either create the link in obsidian and/or open the updated link based on what I type in the search_parameter.
I’m not great at writing code, but I can certainly modify it if I have a starting point.
Then you can explore two types of inline queries: a regular dql query or a dvjs (dataviewjs) query.
In the same note where you write the field searchTerm (choose the key you want), write these two inline queries:
Why I write both queries? Because the “refresh” issue. Dql query doesn’t “auto-refresh” if you change the value in searchTerm… you need to jump to another note and return to take effect. Dvjs query “auto-refresh” if you change the value. But all this in reading mode. In Live preview (LP) I think the dvjs inline query doesn’t “auto-refresh”.
To work in LP I guess you need to use a dvjs query but not an inline one. Something like: