Identify element by its order in structure AND/OR locate where templates are used

Let’s say I have a section template used in different pages. Heading is h2.
In one page I want the same template used as first section, in the DOM I now need a h1.

I’m using URL conditions to render the right heading level, but I need to remember and verify add/remove specific URLs. So:

  1. How to know where a template is used? A locate button would be awesome.
  2. Even more awesome: a condition looking for an element order: if parent is 1 then hide, if >2 then son, and stuff like that.

Thanks.