<$edit-text tiddler="$:/state/new-video-link" tag="input" default=""/>
<$button>
<$action-createtiddler $basetitle={{$:/state/new-video-link}} text="{{||YoutubeTemplate}}" url={{$:/state/new-video-link}}/>
Add
</$button>
<iframe width="560" height="315" src={{!!url}} frameborder="0" allowfullscreen></iframe>
Perhaps an alternate strategy is to just copy the code ICKToz7BLLA the generate a link or twoIn this case you could use [<code>addprefix[https://www.youtube.com/embed/]]
But you can also take the link and [{!!url}removeprefix[https://www.youtube.com/watch?v=]addprefix[https://www.youtube.com/embed/]]
<iframe width="560" height="315" src="[{!!url}removeprefix[https://www.youtube.com/watch?v=]addprefix[https://www.youtube.com/embed/]]" frameborder="0" allowfullscreen></iframe>
<$action-createtiddler $basetitle={{$:/state/new-video-link}} text="{{||YoutubeTemplate}}" url=[{!!url}removeprefix[https://www.youtube.com/watch?v=]addprefix[https://www.youtube.com/embed/]]/
The quick answer is to place the filter inside triple braces without surrounding quotes
Name={{{ filter }}}
I am answering from my mobile and its not so easy to test you code. Have a go and let me know.
Regards
Tony
For the record, when 5.1.20 is released (...aaaaaaany day now) it will be very simple to "search and replace" in a string by means of the split and join filter operators. See this doc, at bottom.