Is it possible to have Grafana dashboard panel templates with variables?

I am looking for Grafana dashboard panel templates with variables. I want to make it easy to create new dashboard panels using these templates. I want to define different variables in the panel template like data source, table name in query, and some other variable in query. So just defining these variables, I should be able to create new panels.

I am aware of library panels but they are different from what I am lookin for. Looks like these are used when we want to have the same panel in multiple dashboards and have the option to update all the panels at once.