You see, once you add the intended addition, you effectively produce two templates of equal priority (despite one with a name attribute).
And the lastly placed will, by design, win.
This is of course undesirable and not what you intend to produce.
The remedy (without taking care of other rendering detail) is to make the last additional part a pure named template without match attribute.
And then you call it at the appropriate place in the original template matching chapter. Like this.
This will largely produce the desired result.
ps: I have to replace a-tag by anchor to make the display possible in this forum... (This is going to be more and more painful...)