Test case:
Create a page [[Template:SelfA]] with the following content:
{{ {{PAGENAME}} | 0 }}
Create a page [[Template:TselfA]] with the following content:
{{ #if: {{{1|}}} | + | {{selfA}} }}
After saving of the second page, I see this on the page:
Template:TselfA
which is actually a selflink.
After purging I see:
+
which is expected on the first view.
Version: 1.20.x
Severity: normal