WHAT DO YOU RECOMMEND
The user could define a formula by which, when the template is used to create an object, dynamic data is inserted into either the object itself or its relation(s).
HOW COULD IT BE DONE
Shortcode or markdown-related user input is a basic method. Obsidian uses this, for example, to insert the present date/time when a template is used to create an object. With the development of a simple formula language, more complex UI models could be used for improved UX, such as a dropdown list from the (template) editor. Obviously the more development work applied to such a model, the less user input would be required to create such variables in templates.
REAL WORLD USE CASES
In the end, the point is to use some formula or variable within a template to automatically fill data into the object or its relations when the template is triggered. Examples of user-entered formula language can be found by review of Obsidian’s template variables. There the user applies code such as {{user}}, where “user” is the variable name pulled from metadata. Another related example is Obsidian’s {{date}} variable used in templates to insert the present date at the time of the template’s application creating a new object (file).
RECOMMENDED ALTERNATIVES
Alternatively, Anytype devs could create such variables input via a UI similar to the way relations are now user-applied. Or perhaps there is a simpler way I haven’t considered.
ADDITIONAL CONTEXT
This FR relates, but does not include the concept of a dynamic formula to apply variable data at the time of object creation.
This FR includes request for suggested drop-down input that could be used for improved UI/UX.