Access current page attributes on new page from template

Is there a way to access the page that was open when a template is called?

Current use case I’m hoping to achieve:

  • Create new project note from the project index
  • Have the project.tag attribute of the notes filled with corresponding project

From my test, @page contains the new page and not the source page.