Not sure if this is even possible given the number of custom cards that are available but it might be. It would be extremely helpful if ALL cards in HA could accept templates for setting parameters dynamically or through the use of dropdowns and other input helpers. This could provide huge flexibility for creating your own interfaces for things like managing files.
Closing as a duplicate. Please vote and comment here:
https://community.home-assistant.io/t/support-templates-in-standard-dashboard-cards/639484