How to modify a template? (upgrade proof)

Actually, if I’m not wrong, the right way to templating is create a new template file and modify it.
This because if a new IP version will be installed, default templates will be overwritten, right?

Yes. You should never edit a default template. Duplicate a template, rename it and make your changes.