Copy text of note when linking to a new note

I am looking for a way to transfer part of the text in my note to a new note I am linking to from it.

What I’m trying to do

All of my notes have this at the bottom:
- - -
<!-- TARGET –>
<!-- FILE TAGS –>

If I create a link to a not yet existing file and click to create it, I would like these last few lines to be copied over to the new note. So a note created directly by link from the given file would have the same text at the end.

I have tried to look for a plugin and tried some template plugins, but so far, no luck?

Does anyone have a clue how this could be accomplished?