Each template corresponds to the name of the php file you are using. For example to edit this thread if you look at the address bar of your browser you'll find that the script called is showflat.php therefore template you need is showflat.tmpl