## Summary

In this module, we will demonstrate how to use links and backlinks to create connections between your notes.

Lets say that you work at a small IT firm and you want to create onboarding docs for your employees.

Create a new note using lookup called onboarding. Then type in the following in the note.

Read up on [[


The [[ tells Dendron that you are about to create a link. Dendron will auto-complete with a matching set of closing brackets ]] as well as give you a list of completions of existing notes.

We are going to create a new note instead of linking to an existing note. So type pro.skynet as your link.

Read up on [[pro.skynet]]


In this case, pro is an alias for projects and skynet is the code name of the project.

With your cursor somewhere inside [[pro.skynet]], hit F12. This will create the pro.skynet note. Just like with lookup, Dendron automatically creates notes to links that don't exist when you navigate to them.

You can switch back to the previous note by pressing CTRL-Tab

• TIP: F12 is not the most convenient shortcut for this often used action. You can switch it to CTRL-ENTER or something more convenient by updating the keybindings

You can add an alternative title to the link by creating an alias. For example, add the project| to your link to change the name in the preview, (If you've closed your preview, you can open it using CMD+SHIFT+P or WINDOWS+SHIFT+P).

Read up on [[the project|pro.skynet]]


To go back to the previous page, you can either use CTRL-TAB, hit F12 over the link, click the link on the preview, or click the link inside the note while holding down the option or ctrl key (operating system dependent).

The takeaway here is that you have lots of ways to navigate links in Dendron.

When your back on pro.skynet, open the backlinks panel on the bottom left section of your sidebar. The backlinks panel shows you all notes with links that point to the current note. This is useful for helping to establish context.

### Note References

Inside pro.skynet, copy and paste the following snippet.

## Summary

Skynet is a friendly bot to help humans do more

## Principles
- [[pro.skynet.principals]]



Navigate to pro.skynet.principals. In this new note, write the principles for skynet.

1. Help humans do more
2. Be nice to humans
3. Don't overthrow humanity


While its nice to have principals in its own section, it's something you might want to include in the main project note. To embed a note into another note, Dendron uses note references. You can create a note reference by using CMD|CTRL+SHIFT+R while inside a note. Go ahead and do that now and use CTRL-TAB to switch back to pro.skynet. Now paste the reference and remove the original wiki-link.

## Summary

Skynet is a friendly bot to help humans do more

## Principles
![[pro.skynet.principals]]



You should have a screen like the one below.

### Note References (continued)

Note references are extremely powerful and help you re-use your notes in a variety of places. To demonstrate, go back to the pro.skynet.principals and make the following modifications to the text so that each numbered bullet becomes its own header.

## Help humans do more

Skynet should help humans be the best human they can be. Skynet will do this using ultrasophisticated AI to help humans realize their true potential.

## Be nice to humans

Skynet should know that humans are delicate organic lifeforms and treat them as such. Skynet should not hurt their fragile egos or make humans feel bad.

## Don't overthrow humanity

Skynet should not launch nuclear missles or send robots from the future to come back to the past and wipe out humanity.


Now highlight the first header and use CMD|CTRL+SHIFT+R to create another note reference.

Go back to pro.skynet. Notice how the note ref has updated with the latest text.

Now copy your newly created reference and paste it underneath.

• BE CAREFUL - some methods of selecting the line will put an extra space after the word "more!". We don't want that space. Make sure that what's highlighted is only the text from "##" to "more!"
• notice that the newly created reference only has the contents from the newly created header
• notice that the newly created reference doesn't show the actual header itself (you can change this behavior by removing the ,1 inside the reference)

Note references are incredibly powerful. You can do additional things like enter a range of headers to do a reference of, include a reference within a reference, and even reference multiple pages using a wildcard pattern. You can see detailed examples of all these functions in the docs.

Sometimes, you don't want to embed a note but just link to a particular section of a given note. You can do that with Dendron relative links. The syntax to do so is [[{link-name}#{link-header}]]. Dendron will create a relative link automatically if you select the header and use CMD|CTRL+SHIFT+C to create a link (if you don't have a header selected, Dendron will create a regular link to the whole page). When you navigate to a regular link, Dendron will scroll to that specific section of the page.

Something to point out is that you can preview a link by using your mouse to hover over it. This even works for note references.

For links to a file format Dendron does not support, you can use the highlight the link and use > Dendron: Open Link to open the file using your operating system default for that file. This also applies to opening paths to folders.

Cross vault links are a way of exactly specifying a note in a multi vault workspace. You can turn a regular link into a cross vault link by adding dendron://$vaultName/ prefix where $vaultName is the name of your vault.

Some examples:

• regular wiki link: [[dendron://vault/foo]]
• wiki link with alias: [[Foo Note|dendron://vault/foo]]
• relative link: [[Foo Note|dendron://vault/foo#header1]]

You can also use cross vault links for note references.

• note ref: ![[dendron://vault/foo]]

### Files

At the end of this module, you should have the following files in your vault

.
└── vault
├── dendron.md
├── dendron.welcome.md
├── hello.md
├── hello.world.md
├── lets.go.deep.md
├── onboarding.md
├── pro.skynet.md
└── pro.skynet.principals.md