Create a new note from template passing parameters

I tried this but got stucked. https://forum.obsidian.md/t/templater-for-parent-child-structures-meeting-minutes-workflow.

I not sure how to extract e.g. note titel from the tp.config.active_file object.
From the example below I would like to create NoteB from a template called when NoteA is active?

NoteA

title::blablabla

NoteB

refnr: [[Note A]]
title::blablabla

new note template

<%*
 let  active_file = tp.config.active_file;
-%>

title:: <%active_file.tags.title%>
summary:: 
refnr::[[<%active_file.title%>]]
1 Like