Is it possible to setup templates for Configuration Items?
the Out-of-the-box system does not contain and allow Templates for table "device".
You may add that by customization. Use a table with templates as example.
1. command db
2. Table "Object"
4. tab "Views/Templates", Supports Templates? = true
to find tables using Templates.
And you may consider that templates for devices would take into account only device table, not the attribute files.