Create a new note from an existing note inheriting some properties from the parent note

I would like to generate a series of “nested” notes that are created by pressing one of the keys (keys that are linked to the respective templates).
Each note should be saved in one of the three subdirectories present in the directory that contains the main note, divided by topics, as explained below:

The directory tree should look like this below:
image

The notes should be generated from a specific template (saved in the ‘template’ folder) that receives some properties from the ‘parent’ note :
ex. part number: P1F00029

Thank s for support