I have one template in which I set search to contain the whole code block. This is because I had one edit at the very beginning and one edit at the very end. It works fine but now I'm thinking it would make sense to have two mods based on the original template. One for the beginning code change and one for the ending code change. The idea being that the bulk of the code would not be in the mod and there would be less chance of a conflict when upgrading.
Re: template change from an upgrade. Does XenForo show us there is an outdated template if all mods are done ONLY via TMS? Or can the TMS show us? [like how it puts a line though the mod title when it's unchecked]
I had a chance to test this. I split one big mod into two smaller ones. Checked the difference using just one of them and thought I had messed up. In reality it was checking the final template so the result showed both modifications applied. Much better for testing with two small mods instead of one big one. I also tested a mistake and the TMS shows Applied 0 Times in red. Very easy to spot. The TMS is an extremely useful addon.