Template: Create an MOC Note with a Link Dashboard
Use this pattern when you want QuickAdd to create a new map-of-content note that already contains a live Base dashboard for both backlinks and outgoing links.
Why this patternâ
A Template choice can create the note and insert the dashboard in one step.
The note stays markdown, while the embedded .base block gives you a live view
of how that note connects to the rest of your vault.
This works well for maps of knowledge, hub notes, topic notes, and evergreen indexes.
Setupâ
- Create a reusable
.basetemplate, for exampleTemplates/MOC Link Dashboard.base:
formulas:
note_link: "file.asLink()"
properties:
formula.note_link:
displayName: Note
file.folder:
displayName: Folder
file.mtime:
displayName: Updated
views:
- type: table
name: Backlinks
filters:
and:
- 'file.ext == "md"'
- "file.hasLink(this.file)"
- "file.path != this.file.path"
order:
- formula.note_link
- file.folder
- file.mtime
- type: table
name: Outgoing links
filters:
and:
- 'file.ext == "md"'
- "this.file.hasLink(file)"
- "file.path != this.file.path"
order:
- formula.note_link
- file.folder
- file.mtime
- Create a markdown template, for example
Templates/MOC Link Dashboard.md:
---
tags:
- moc
---
# {{VALUE:moc_title}}
## Link Dashboard
Use the view picker in this embedded base to switch between backlinks and
outgoing links for this note.
```base
{{TEMPLATE:Templates/MOC Link Dashboard.base}}
```
## Notes
- Start linking this note to related ideas.
- Create a Template choice with settings like these:
- Template Path:
Templates/MOC Link Dashboard.md - File Name Format:
{{VALUE:moc_title}} - Create in folder: your MOC folder, for example
MOCs - Open: enabled
- File already exists behavior:
Increment the file name
- Run the Template choice and enter a title such as
Alpha Project.
What you getâ
QuickAdd creates a new markdown note with an embedded Base block. Inside the note:
Backlinksshows notes that link to the new MOC.Outgoing linksshows notes the MOC links to.- Both views use
this.file, so the dashboard automatically scopes itself to the note that was just created.
After the note exists, add links in either direction and the dashboard updates with the current graph around that note.
