Last active
January 13, 2023 18:58
-
-
Save smarkwell/9a1ffe0459af93e378e544e67e9ccb88 to your computer and use it in GitHub Desktop.
Sample Dataview Faction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
status: Alive | |
factions: | |
- name: This File | |
role: Leader | |
--- | |
I am the Leader of This File faction | |
#character |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Members | |
```dataview | |
table | |
map(filter(factions, | |
(f) => link(f.name) = this.file.link | |
),(f) => f.role) as "Role(s)", | |
status as "Status" | |
from #character | |
where contains(map(factions.name,(n) => link(n)), this.file.link) | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment