mirror of
https://github.com/openstreetmap/id-tagging-schema.git
synced 2025-10-26 12:23:52 +01:00
crossing: Add readme docs on the presets/@templates
This commit is contained in:
parent
2cec1313d7
commit
289a57b700
1 changed files with 13 additions and 0 deletions
13
data/presets/@templates/README.md
Normal file
13
data/presets/@templates/README.md
Normal 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`.
|
||||
Loading…
Add table
Add a link
Reference in a new issue