Dataview plugin: https://github.com/blacksmithgu/obsidian-dataview
Dataview documentation: https://blacksmithgu.github.io/obsidian-dataview/
Dataview example vault: https://s-blu.github.io/obsidian_dataview_example_vault/
***
## Uncreated Files
```dataview
TABLE without id
out AS "Uncreated files", file.link as "Origin"
FLATTEN file.outlinks as out
WHERE !(out.file) AND !contains(meta(out).path, "/")
SORT out ASC
```
## Unlinked Notes
```dataview
LIST FROM "Folder Name"
WHERE length(file.inlinks) = 0 AND length(file.outlinks) = 0
```
# Worldbuilding Specific
These are some of the views I set up in my private [[Worldbuilding]] vault.
See: [[Worldbuilding in Obsidian]]
> [!warning] You will need to modify the folder location names in these and set up the same metadata for it to work in your own vault :)
## List all articles
Change the sort order by adding a line e.g. `SORT template ASC` to sort by template. This might lag if there are a lot of notes, but it works fine for me at 500+.
```dataview
TABLE
reverse(split(file.folder, "/"))[0] AS "Category",
template AS "Article Template",
status AS "Status"
FROM "Melior"
```
*(Thanks **Dovos** on the Obsidian Discord server for showing me how to list the folder name!)*
## List articles based on status
Change draft to any other declared status used in metadata
```dataview
LIST
FROM "Melior"
WHERE status = "draft"
SORT ASC
```
## List articles based on tags
Use `AND` to show articles that use multiple tags like `#template/character AND #nsfw`
- `FROM "Melior" and #template/character and #nsfw`
Use `OR` to show articles from one tag or another like `#food OR #drink`
- `FROM "Melior" and (#food or #drink)`
Use `!` to exclude things from the search (example searches for all weapons that aren't swords)
- `FROM "Melior" and (#weapon and !#sword)`
```dataview
LIST
FROM "Melior" and #nsfw
```
## List articles based on multiple metadata values
(Example lists all characters of Jolundrian ethnicity)
```dataview
LIST
FROM "Melior"
WHERE template = "character" and ethnicity = "jolundrian"
```