The request
Under Automations, for Triggers: when you define a template trigger, you can click the "Edit as YAML" menu option and add a for value. This does not cause an error and functions as expected. I would propose adding a UI "for" option for Templates like there is for States.
The alternatives
Additional information