2024-08-02 22:47:36 +08:00
#meta
2024-07-07 18:12:05 +08:00
2024-08-02 22:47:36 +08:00
This page lists all templates currently available in your space. You can also navigate to them via the {[Navigate: Meta Picker]}. More information on templates can be found [[!silverbullet.md/Templates]]
2024-01-21 02:16:07 +08:00
# New Page
2024-02-03 02:19:07 +08:00
These [[!silverbullet.md/Page Templates]] are available through the {[Page: From Template]} command:
2024-01-21 02:16:07 +08:00
```query
template where hooks.newPage render [[Library/Core/Query/Template]]
```
# Snippets
These can be used as [[!silverbullet.md/Snippets]] via [[!silverbullet.md/Slash Commands]]:
2024-02-03 02:19:07 +08:00
```template
{{#each {
template
where hooks.snippet
order by hooks.snippet.slashCommand
}}}
* [[{{ref}}|/{{hooks.snippet.slashCommand}}]] {{description}}
{{/each}}
2024-01-21 02:16:07 +08:00
```
# Widgets
Widgets can either be automatically attached to the top or bottom of pages (matching certain criteria) or used inline via [[!silverbullet.md/Live Templates]].
## Top
```query
template
where hooks.top
order by order
render [[Library/Core/Query/Template]]
```
## Bottom
```query
template
where hooks.bottom
order by order
render [[Library/Core/Query/Template]]
```
## Inline
2024-02-03 02:19:07 +08:00
Use with [[!silverbullet.md/Live Templates#Include]] to render useful things in your pages:
2024-01-21 02:16:07 +08:00
```query
template
2024-02-03 02:19:07 +08:00
where name =~ /\/Widget\// and not hooks.top and not hooks.bottom
2024-01-21 02:16:07 +08:00
order by order
render [[Library/Core/Query/Template]]
```