D&D Campaign cross-referencing with dataview…
- I have a few basic types: faction, npc, location
- I have some tagging conventions:
- General region: #region/subregion/sub-subregion/…
- Specific place: #place/settlement/loggers-camp or #place/town/phandalin/stonehill-inn
That feels chatty, but it comes pretty naturally. What that means I then have is:
A) a full index grouped by type:
## Locations
```dataview
list from "compendium"
where type = "location"
sort file.name asc
```
## NPCs
```dataview
list from "compendium"
where type = "npc"
sort file.name asc
```
## Factions
```dataview
list from "compendium"
where type = "faction"
sort file.name asc
```
B) Cross references can then be displayed to help hop between things without creating links/backlinks (if you want to reserve those for stronger meaning, e.g.)
A specific location can do the following to find related NPCs and log entries:
## NPCs
```dataview
list from #place/landmark/circle-of-thunder
where type = "npc"
```
## History
```dataview
list from #place/landmark/circle-of-thunder and "pc-logs"
```
A Faction adds an additional lookup for related locations:
## Locations
```dataview
list from #group/faction/bregan-daerthe
where type = "location"
```
Tag structure matters for me, e.g. because it is #region/subregion/sub-subregion … I can get a broader index of anything in the region by specifying “#region/subregion” in the from (as the listed results contain any included sub tags).
I hope this makes sense.