better lists in templates

This commit is contained in:
mProjectsCode 2022-05-13 11:16:22 +02:00
parent 1b31436e58
commit b3ff9d1a38
2 changed files with 60 additions and 9 deletions

View file

@ -13,6 +13,21 @@ Allows you to search by an ID that varies from API to API. Concrete info can be
The plugin allows you to set a template note that gets added to the end of any note created by this plugin.
The plugin also offers simple "template tgs". E.g. if the template includes `{{ title }}`, it will be replaced by the title of the movie, show or game.
Note that "template tags" are surrounded with two curly braces and that the spaces inside the curly braces are important.
For arrays there are two special ways of displaying them.
- using `{{ LIST:variable_name }}` will result in
```
- element 1
- element 2
- element 3
- ...
```
- using `{{ ENUM:variable_name }}` will result in
```
element 1, element 2, element 3, ...
```
I also published my own templates [here](https://github.com/mProjectsCode/obsidian-media-db-templates).
### Currently supported media types