We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugin informations (please complete the following information):
Describe the bug <%+ tp.frontmatter.relation %> returns NaN instead of "Tochter".
<%+ tp.frontmatter.relation %>
NaN
Expected behavior Should return the value in the front matter, in this case "Tochter"
Screenshots
Additional context
My front matter:
--- location: [51.133333,10.416667] mapmarker: Family birthday: 1997-05-17 deceased: 2020-05-17 relation: Tochter tags: family distance: 100.0 ---
My code in the note, comparing Dataview and Templater:
\* `= this.birthday` (`= (date(today) - this.birthday).years + " Jahre"`) † `= this.deceased` `= this.relation` \* <%+ moment(tp.frontmatter.birthday).format("dd., YYYY-MM-DD") %> (<%+ moment().diff(moment(tp.frontmatter.birthday), "years") %> Jahre) † <%* if (tp.frontmatter.deceased) {tR+=moment(tp.frontmatter.deceased).format("dd., YYYY-MM-DD")} else {tR+="-"} %> <%+ tp.frontmatter.relation %>
Note: Data is fake, my daughter happily lives. This was just put in for testing.
The text was updated successfully, but these errors were encountered:
Possibly related: #188
Sorry, something went wrong.
With 1.7.0, above now returns <%+ tp.frontmatter.relation %> instead of NaN or Tochter (as it should).
Tochter
d6e2d86
Hey @Moonbase59, sorry for the late response. Thanks for the report. This should be fixed now as of Templater 1.7.1.
Update and tell me if this works now.
@SilentVoid13 No problem, your response times are great! 1.7.1 fixed it, thanks!
SilentVoid13
No branches or pull requests
Plugin informations (please complete the following information):
Describe the bug
<%+ tp.frontmatter.relation %>
returnsNaN
instead of "Tochter".Expected behavior
Should return the value in the front matter, in this case "Tochter"
Screenshots
![obsidian-templater-bug-NaN](https://user-images.githubusercontent.com/3706922/117245332-fc599e80-ae3a-11eb-85d3-f43e18314083.png)
Additional context
My front matter:
My code in the note, comparing Dataview and Templater:
Note: Data is fake, my daughter happily lives. This was just put in for testing.
The text was updated successfully, but these errors were encountered: