Sorry for the prolonged silence but this time I wanted to do my homework and not ask questions that I could answer myself (although I managed to do it anyway)
With your last example you guessed precisely what I wanted to do, Paul.
After I started over in a fresh document your code worked flawlessly, thank you!
Of course, renaming the original note will break the transclusion. An alternative solution that would allow this would be to substitute the name of the note with their ID, like so:
In which case the renaming of the note entitled “pawpaw” has no effect on the result. The broken transclusion attempt can be seen one line above).
Incidentally, why would the attempt to transclude a target that does not exist result in “text trying to include itself”?
Anyway, many thanks, I learned a whole lot, this forum is a goldmine of information.