When you are creating or editing a template in your Library, you can always save it as a draft and come back to work on it later. If you have selected that option (at the bottom of each page of the Template), your work will be saved in Library => Position Templates => Draft.
If you haven’t saved it as a Draft, it should be saved within one of the folders in your library.