From 289a57b70084e8d3ee830ba8a84f23e6266bb48c Mon Sep 17 00:00:00 2001 From: Tobias Date: Fri, 26 Apr 2024 10:55:00 +0200 Subject: [PATCH] crossing: Add readme docs on the `presets/@templates` --- data/presets/@templates/README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 data/presets/@templates/README.md diff --git a/data/presets/@templates/README.md b/data/presets/@templates/README.md new file mode 100644 index 00000000..414a7a6b --- /dev/null +++ b/data/presets/@templates/README.md @@ -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`.