Hi
T4 will be a bit more complicated, you will need to have XML file for associated section in template settings.
For example, if you want to customize settings for 'Site settings' section in template, you will edit this file:
root/templates/your_t4_template/params/typelist-site.xml
Here is sample file: