You cannot set dependencies in task templates. However, you can set dependencies in Project templates. When you create a new task list select Choose from project templates option and select a task list from the project template. The dependencies set in the task list of the project template are carried to the new task list.