What I’m trying to do
Hello everyone,
I’m currently trying to automate the process of creating intervention notes in Obsidian using the Templater plugin. However, I’m encountering some difficulties and I hope someone could provide some advice.
I want to create a note for each intervention that includes the following:
- The name of the intervenant (speaker) should be automatically linked to a pre-existing note (or create a new one if it doesn’t exist).
- I want to easily select a domain (e.g., “Métiers”, “Équipement”, “Vente”) for each intervention.
- The date of the intervention should be manually entered.
Things I have tried
This is what I’m working with :
---
intervenant: "<% tp.user.input('Nom de l\'intervenant') %>"
date: "<% tp.date.now('YYYY-MM-DD') %>"
tags:
- <% tp.user.input('Domaine (par exemple, Métiers, Équipement, Vente)') %>
---
# <% tp.file.title %>
- [[<% tp.user.input('Nom de l\'intervenant') %>|🎤 Informations sur l\'intervenant]]
- [[#📝 Résumé|📝 Résumé]]
- [[#📌 Notes détaillées|📌 Notes détaillées]]
- [[#🔥 Points clés à retenir|🔥 Points clés à retenir]]
- [[#❓ Questions ouvertes|❓ Questions ouvertes]]
- [[#🔗 Liens et ressources|🔗 Liens et ressources]]
## 🎤 Informations sur l'intervenant
- **Nom** : [[<% tp.user.input('Nom de l\'intervenant') %>]]
- **Domaine** : <% tp.user.input('Domaine (ex : Métiers, Équipement)') %>
- **Date** : <% tp.date.now('YYYY-MM-DD') %>
## 📝 Résumé
...
## 📌 Notes détaillées
...
## 🔥 Points clés à retenir
...
## ❓ Questions ouvertes
...
## 🔗 Liens et ressources
...
And this is what I get in the console :
Templater Error: Template parsing error, aborting.
tp.user.input is not a function
So I’ve tried other functions :
---
intervenant: "<%* tp.user.input('Nom de l\'intervenant') %>"
date: "<% tp.date.now('YYYY-MM-DD') %>"
tags:
- <%* tp.user.input('Domaine (par exemple, Métiers, Équipement, Vente)') %>
---
# <% tp.file.title %>
- [[<%* tp.user.input('Nom de l\'intervenant') %>|🎤 Informations sur l\'intervenant]]
- [[#📝 Résumé|📝 Résumé]]
- [[#📌 Notes détaillées|📌 Notes détaillées]]
- [[#🔥 Points clés à retenir|🔥 Points clés à retenir]]
- [[#❓ Questions ouvertes|❓ Questions ouvertes]]
- [[#🔗 Liens et ressources|🔗 Liens et ressources]]
## 🎤 Informations sur l'intervenant
- **Nom** : [[<%* tp.user.input('Nom de l\'intervenant') %>]]
- **Domaine** : <%* tp.user.input('Domaine (ex : Métiers, Équipement)') %>
- **Date** : <% tp.date.now('YYYY-MM-DD') %>
## 📝 Résumé
...
## 📌 Notes détaillées
...
## 🔥 Points clés à retenir
...
## ❓ Questions ouvertes
...
## 🔗 Liens et ressources
...
And then these ones
---
intervenant: "<% tp.prompt('Nom de l\'intervenant') %>"
date: "<% tp.date.now('YYYY-MM-DD') %>"
tags:
- <% tp.prompt('Domaine (par exemple, Métiers, Équipement, Vente)') %>
---
---
intervenant: "<%* tp.user.prompt('Nom de l\'intervenant') %>"
date: "<% tp.date.now('YYYY-MM-DD') %>"
tags:
- <%* tp.user.prompt('Domaine (par exemple, Métiers, Équipement, Vente)') %>
---
I have the latest version of Templater but otherwise I don’t really understand what I’m doing wrong.