2022-10-03 15:25:35 +00:00
# Decade Default Metadata File
2022-09-27 19:28:57 +00:00
2022-10-07 17:18:32 +00:00
The `decade` Metadata File is used to dynamically create collections based on the decades available in your library, sorted by critic rating to create a "best of < decade > "
2022-09-27 19:28:57 +00:00
Example Collections Created:
![](../images/decade.png)
2022-09-27 22:01:34 +00:00
The below YAML in your config.yml will create the collections:
2022-09-27 19:28:57 +00:00
```yaml
libraries:
Movies:
metadata_path:
2022-10-03 20:34:30 +00:00
- pmm: decade
2022-09-27 19:28:57 +00:00
```
## Template Variables
Template Variables can be used to manipulate the file from the default settings which are provided.
Note that the `templates_variables:` section only needs to be used if you do NOT want to use the default settings.
2022-10-07 16:52:47 +00:00
All [Shared Variables ](../variables ) are available as well as the additional Variables below which can be used to customize the file.
2022-09-27 19:28:57 +00:00
2022-10-07 16:52:47 +00:00
| Variable | Description & Values |
|:-----------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `sort_by` | **Description:** Controls the sort method for the collections< br > **Values:** Any sort method in the [Sorts Options Table ](#sort-options ) |
2022-09-27 19:28:57 +00:00
2022-10-08 16:31:06 +00:00
The below is an example config.yml extract with some Template Variables added in to change how the file works.
2022-09-27 19:28:57 +00:00
```yaml
libraries:
Movies:
metadata_path:
2022-10-03 20:34:30 +00:00
- pmm: decade
2022-09-27 19:28:57 +00:00
template_variables:
sort_by: title.asc
collection_section: 18
collection_mode: show_items
use_other: false
use_separator: false
sep_style: purple
2022-10-07 16:52:47 +00:00
```