fantasy-statblocks icon indicating copy to clipboard operation
fantasy-statblocks copied to clipboard

Question: any way to make `=this.name_of_dataview_var` work in a statblock?

Open scarfur opened this issue 3 years ago • 0 comments

Hey there,

I am trying the following - which is giving me headaches ... 🥲

> [!note] WIP!
> ```statblock
>  monster: `=this.name`
> ```

The statblock does not get rendered but if I change =this.name to the string value; test (read below why it is test and should be a variable) for troubleshooting purpose, the statblock gets rendered as it should, but I need the variable, not the string in my template.

In the frontmatter, name is valid and the string is: test

statblock = true is some rows below (by chronological means) the name field in the frontmatter. parse from frontmatter in the plugin settings is true.

The frontmatter gets populated by the plugin; database folder. So the core of my problem is, that I do not know the name of the file/monster because the statblock is created in a template which gets used by templater and database folder for creation of the note. So I want to automate the values/entries in the statblock but I do not get my head around how to solve this.

I would be so happy for any help 😭

I hope this is the right place to ask!? Thanks for all your great plugins valentine195 - you are a 🧙‍♂️

scarfur avatar Sep 09 '22 16:09 scarfur