Get the display text of wikilink that triggered note creation within a Templater's template

Hello,

On clicking a link to a non-existant file, I want my Templater’s template to use the display text of the clicked link as a heading. How can I access it within my template ?

You can’t

When you click on [[non-existing]] wikilink

  1. openLinkText() function is called.
  2. it triggers new note creation.
  3. Templater handles create event. At this moment, the information about the original wikilink is completely lost.

Oh ok, I’ll go without it then. Thank you for answering.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.