Template Link in Templates
When a template includes a parameter argument that contains a link to a template page, the close tag of the link is used to close the template rather than the link. This occurs because template link parsing is deferred to the same cycle as other wiki links.
Fixed for the next build. Instead of deferring the link, it should output exactly as it appears, to trick the parser into ignoring its end tag and have it there for the link cycle.