Linking to different notes/folders

What I’m trying to do

I want to generate a link to a folder.
For school I have a folder with folders of all my modules.
Therefore I have one template.

Now I want to generate a property which automatically link to the module.
Now I have a link to my note called “School”.
But now I wat to change it to [[School/(module)/(module base note)]]

So if I open a new note in “Automation” the link will be [[School/Automation/Automation]]
If its technical mechanics the link will be [[School/ Technical Mechanics/Technical Mechanics]].

Is this possible or should I have a Templates for every Module?

Thank you!