-
I have a few complex queries that I use in my daily journal, and the code is quite long. I am often tweaking it, and then copying and pasting it into all the notes that use it. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
(References to |
Beta Was this translation helpful? Give feedback.
-
This can be done via Example from @SlRvb: https://discord.com/channels/686053708261228577/875721010144477204/994980905934397481 const note = dv.current()
dv.span(`
> [!infobox]+
> # ${note.Name}
>
> | | |
> | --- | --- |
> | **Age** | ${note.Age} |
> | **Class** | ${note.Class} |
> | **Level** | ${note.Level} |
> | **Race** | ${note.Race} |
`) And what that note would look like: ---
Name: Test Name
Age: Test Age
Class: Fighter
Level: 2
Race: Aasimar
---
```dataviewjs
dv.view("Path/to/your/view/js/file.js")
\``` |
Beta Was this translation helpful? Give feedback.
This can be done via
dv.view()
.Example from @SlRvb: https://discord.com/channels/686053708261228577/875721010144477204/994980905934397481
And what that note would look like: