Templating in Time Events

Is it possible to use some form of templating inside the minutes or seconds fields of a time trigger?
Currently, I use something like

trigger:
platform: time
minutes: ‘/3’
seconds: 00

but I would like to control the frequency via another variable e.g. input_slider.interval, so is there a way to do something like:

trigger:
platform: time
seconds: 00
minutes: '/{{ input_slider.interval | int}}`

Is there a template function that would achieve this?

that thread should have just about everything you’re looking for