crossing: Add readme docs on the presets/@templates

This commit is contained in:
Tobias 2024-04-26 10:55:00 +02:00
parent 2cec1313d7
commit 289a57b700

View file

@ -0,0 +1,13 @@
# About `@templates`
Presets in `@templats` are a convention for a specific type of presets that are only used from inside other presets.
The only fields that really matter for these special presets are the `fields`.
All other properties can be copied from existing presets and ignored. They are default values that are meant to
## How to use
Inside another preset, reference the template or any other preset - like `"{@templates/internet_access}"` in `fields` or `moreFields`. This will "copy" all the listed fields from the file `data/presets/@templates/internet_access.json`.
You can only "copy" (template) `fields` to (preset) `fields` and (template) `moreFields` to (preset) `moreFields`.