Alberto -
All active templates will apply to all profiles in the probe. The precedence is used if you have the same metric configured to be collected in both templates. The filters are applied in precedence order. Lower precedence numbers have higher priority. For equal precedence numbers filters are applied in alphabetical order.
If you want to control with profile a template is applied to, then you have to do this by setting up filters in the template. These filters can be defined at many levels in the template. So, using the snmpcollector probe as an example. If you have 2 devices, device_A and device_B, and you want to define a template that will only be applied to device_A, then in the template editor you would define a template filter at the device level so that the template will only match the device_A profile:

In the screenshot above, the device_A template shown will be applied only to any profile on the snmpcollector Configure Page under the Profiles node where the profile label is device_A (and there should only be 1). Note that this is a case sensitive match so it will not match any other string (like device_a or Device_A).
It is generally not recommended creating a template for each profile, but to define generic templates that should be applied to all devices with high precedence numbers (because the lower precedence numbers have higher priority). Then create one-off templates with higher priorities where you define filters at the component level if you need to change what is monitored on different profiles configured in the probe.
I hope this helps.