The TMS template is based on hard coded values, phrases and sections. It will not work with if/else statements like python logic. The hardcoded values can be called in the template manually under the applicable section, as well as in html based booki...
The FQDN tms.example.com would be where the DNS record points to for the VIP configured on the NLB. This is also what you configure TMS in Administrative Tools > Configuration > Network Settings > Advanced Network Settings for Systems on Internal LAN...