Skip to content

Templates

The plugin allows you to set a template note that gets added to the end of any note created by this plugin. This enables you to customize the format and content of your media notes.

The plugin offers simple template tags that will be replaced with metadata from the imported media.

Template tags use the following syntax:

{{ property_name }}

Important: Note that template tags are surrounded by two curly braces and spaces. The spaces inside the curly braces are important!

{{ title }}

This will be replaced by the title of the media being imported.

Available variables that can be used in template tags are any front-matter properties returned by the API. These vary by API and media type, but commonly include:

  • {{ title }}
  • {{ year }}
  • {{ rating }}
  • {{ director }}
  • {{ genres }}
  • And many more…

For array properties (like genres, actors, etc.), 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, ...

Here’s an example template for a movie:

# {{ title }}
**Year**: {{ year }}
**Director**: {{ director }}
**Rating**: {{ rating }}
## Genres
{{ LIST:genres }}
## Cast
{{ LIST:actors }}
## Plot
{{ plot }}
## My Notes

For more inspiration, check out the community templates repository.